How to download the latest build artifacts from Azure DevOps programmatically?

SuperJMN picture SuperJMN · Jan 27, 2019 · Viewed 22.6k times · Source

I have a .NET C# application and I would like to download the latest artifacts generated by the latest build of this public Azure DevOps project:

https://dev.azure.com/LumiaWoA/Boot%20Shim/_build?definitionId=3

How does one interface with Azure DevOps to download the artifacts for such a task?

I have in mind to use an HttpClient to download the zipped artifacts using some special URL.

Answer

ΩmegaMan picture ΩmegaMan · Oct 9, 2019

In the Pipelines when one selects a successful run and drills down to Agent job X and selects that agent, it can be found in the log information of that agent.

In the agent Job Information, one can get a link to the download location where items can be downloaded thanks to the X artifact produced link:

enter image description here