Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 713
SuperJMN Avatar asked Jan 27 '19 17:01

SuperJMN


People also ask

How do you get building artifacts in Azure DevOps?

Publish NuGet packages to Azure Artifacts feeds or public registries such as nuget.org. Publish npm packages to Azure Artifacts feeds or public registries such as nmpjs.com. Publish Maven packages to Azure Artifacts feeds. Publish Python packages to Azure Artifacts feeds or PyPI.org.

How do I download Azure DevOps build logs?

To download all logs, navigate to the build results for the run, select ..., and choose Download logs. To download all logs, navigate to the build results for the run, choose Download all logs as zip.


1 Answers

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

like image 116
ΩmegaMan Avatar answered Sep 18 '22 09:09

ΩmegaMan