How to get URL to download latest built artifact package in Azure DevOps

3.8k Views Asked by At

I used to have a simple URL like this (below) that automatically point to the latest build artifact.

https://{organization}.visualstudio.com/{project}/_packaging?_a=packagefeed={feedid}&package={packageid}&preferRelease=true?api-version=6.0-preview.1

But it doesn't work anymore due to some update by Azure.

Does anyone know a way to get around this?

1

There are 1 best solutions below

0
On

If you want to download the artifact published by the Publish Build Artifacts task or Publish Pipeline Artifacts task from the build pipeline, you can use the RESI API "Artifacts - Get Artifact" to get the download URL the specified build artifact.

If you want to get the download URL of a package published to the feed of Azure Artifacts, you can try using the following RESI API to download the package: