如何让URL下载Azure DevOps中的最新构建的工件包

发布于 2025-01-24 09:19:26 字数 282 浏览 4 评论 0 原文

我曾经有一个像这样的简单URL(下图),它自动指向了最新的构建工件。

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

但是由于Azure进行了一些更新,因此不再起作用。

有人知道一种解决这个问题的方法吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧故 2025-01-31 09:19:26

如果要下载由 发布构建工件任务 发布管道伪像 从构建管道中,您可以使用resi api“ < a href =“ https://learn.microsoft.com/en-us/rest/rest/api/azure/devops/build/build/build/artifacts/get-artifact?view= azure-devops-rest-6.0” > 伪像 - 获取伪像 “获取指定的构建伪像的下载URL。

如果您想获取发布给Azure工件供稿的软件包的下载URL,则可以尝试使用以下resi api下载该软件包:

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文