如何在 Azure DevOps 中获取 Repo 的管道信息?

问题描述 投票:0回答:1

我想知道给定 Repo 的管道,我看不到任何直接的方法来获取此信息,有什么方法可以获取此信息吗?

azure-devops azure-pipelines azure-devops-rest-api
1个回答
0
投票

可以使用 API 来完成。您必须迭代所有管道并按存储库 ID 进行过滤。

这是我为其编写的脚本:https://gist.github.com/steffensbola/bc0f2613411b24b83f1bb59c36054dcd

此脚本将为您提供 yaml 和旧管道。

© www.soinside.com 2019 - 2024. All rights reserved.