Azure Artifacts - 下载特定版本的通用工件 [英] Azure Artifacts - Download a specific version of Universal artifact

查看:23
本文介绍了Azure Artifacts - 下载特定版本的通用工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在 CI/CD 流程中使用 azure devops.很多时候,为了进行一些自定义构建,我们需要从 artifact repo 下载特定的通用包.

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.

是否有 API 可以做同样的事情?

Is there a API to do the same ?

同样的问题是关于使用 API 或 python sdk 下载特定版本的通用工件.

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

类似于下面的问题Azure Artifacts - 下载特定版本的 maven artifact

推荐答案

遗憾的是,目前没有用于下载通用包的 API.我注意到以下链接中已经有一个功能建议,您可以投票:

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

目前,您必须使用 Azure CLI 下载软件包.Azure DevOps 不支持直接 HTTP/HTTPS 下载链接或其他方式下载包.

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-包

这篇关于Azure Artifacts - 下载特定版本的通用工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆