Permalink to artifacts containing job-id

Benedict Hartmann's Avatar

Benedict Hartmann

08 Nov, 2018 11:43 AM

Prerequisite: The job-id stays constant at all builds

Problem: The Job-name may become very long (e.g:Environment: APPVEYOR_BUILD_WORKER_IMAGE=Visual Studio 2017, generator=Visual Studio 15 2017 Win64; Configuration: Release)

Solution: To generate the permalink to the build it would be great, if i could write the job-id instead of the job-name for the generated job. Much more handy and way easier. Additionaly, you could message the job-id in the current-build information Link to permanent links

  1. Support Staff 1 Posted by Ilya Finkelshte... on 08 Nov, 2018 09:41 PM

    Ilya Finkelshteyn's Avatar

    Hi Benedict,

    It actually exists :) If you check link to the artifact in UI, you can find that it is https://ci.appveyor.com/api/buildjobs/<job-id>/artifacts/<filename>.

    You can get job id from APPVEYOR_JOB_ID environment variable.

    Better yet, notification template has eventData.jobs[].artifacts.permalink element. And you can use notification template with any king of notification, by customizing it.

    Hope this helps.

    Ilya.

  2. Ilya Finkelshteyn closed this discussion on 09 Jan, 2019 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac