Azure Artifacts - Download a specific version of Universal artifact

时间秒杀一切 提交于 2020-07-23 06:19:35

问题


We are using azure devops for our CI/CD process. Many a times, in order to do some custom builds, we need to download the specific universal bundle from artifact repo.

Is there a API to do the same ?

Again the question is about downloading a specific version of universal artifact using API or python sdk.

Similar to below question Azure Artifacts - Download a specific version of maven artifact


回答1:


Unfortunately, there is no API exists to download Universal Package. I've noticed there is already a feature suggestion in the following link, you can vote it:

https://developercommunity.visualstudio.com/idea/495533/download-universal-package-trough-api.html

Currently, you must use the Azure CLI to download the package. Azure DevOps doesn't support direct HTTP/HTTPS download links or other ways to download the package.

az artifacts universal download --organization https://dev.azure.com/fabrikam --feed FabrikamFiber --name my-first-package --version 1.0.0 --path .

More details please refer to the following documentation:

https://docs.microsoft.com/en-us/azure/devops/artifacts/quickstarts/universal-packages?view=azure-devops&tabs=azuredevops#download-a-universal-package



来源:https://stackoverflow.com/questions/63015550/azure-artifacts-download-a-specific-version-of-universal-artifact

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!