Azure DevOps REST API - 获取任务组参数详细信息

发布于 2025-01-15 02:42:28 字数 159 浏览 3 评论 0原文

我有一组 Azure DevOps 管道作业,它们使用多个共享任务组,但除此之外,每个作业还有自己的离散管道任务集和其他配置设置。

是否有一个 Azure DevOps REST API 命令可供我运行来为每个管道生成、管道任务列表(包括所使用的任务组的任务列表)及其配置设置(包括参数)?

I have a collection of Azure DevOps pipeline jobs that consume a number of shared Task Groups, but in addition, each also has its own discrete set of pipeline Tasks and other configuration settings.

Is there an Azure DevOps REST API command that I can run to generate for each Pipeline, the list of pipeline tasks (including those of the consumed Task Groups) and their configuration settings, including parameters?

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

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

发布评论

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

评论(1

雨夜星沙 2025-01-22 02:42:28

是否有一个 Azure DevOps REST API 命令可供我运行来为每个管道生成管道任务列表(包括所使用的任务组的任务列表)及其配置设置(包括参数)?

答案是肯定的。

您可以使用 Azure DevOps REST API 命令 az pipelines 构建定义显示

az pipelines build definition show [--detect {false, true}]
                                   [--id]
                                   [--name]
                                   [--open]
                                   [--org]
                                   [--project]
                                   [--subscription]

其返回的是 Json 格式的内容,如:

在此处输入图像描述

如果你想自动列出所有管道信息,那么你可以考虑使用REST API:

定义 -获取

Is there an Azure DevOps REST API command that I can run to generate for each Pipeline, the list of pipeline tasks (including those of the consumed Task Groups) and their configuration settings, including parameters?

The answer is yes.

You could use the Azure DevOps REST API command az pipelines build definition show:

az pipelines build definition show [--detect {false, true}]
                                   [--id]
                                   [--name]
                                   [--open]
                                   [--org]
                                   [--project]
                                   [--subscription]

Its return is a Json formatted content, like:

enter image description here

If you want to automatically list all the pipeline information, then you can consider using the REST API:

Definitions - Get

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