使用 Azure DevOps REST Api,除了列出所有构建之外,如何通过构建编号获取构建?

mar*_*ark 2 azure-devops azure-devops-rest-api

因此,我看到 Api 通过其构建 ID 获取构建,但我看不到通过构建号获取它。是列出所有构建的唯一方法吗?

Mat*_*att 5

您可以在构建中使用可选参数- List API

https://dev.azure.com/{organization}/{project}/_apis/build/builds?api-version=4.0&buildNumber=0.0.1836.3
Run Code Online (Sandbox Code Playgroud)