如何通过提交检索构建?

时间:2020-09-14 17:47:34

标签: azure-devops-rest-api

我有一个与commit XXX合并的PR。可以通过提交进行构建吗?

我发现了类似的问题-How to get build list for particular Commit through DevOps REST API

但是我提交的状态为空。您能帮我在这里找到正确的解决方案吗?

1 个答案:

答案 0 :(得分:1)

不幸的是,没有通过提交来构建的api,您可以在下面的网站上提交建议:

https://developercommunity.visualstudio.com/content/idea/post.html?space=21

当前,您需要从Builds - List api中过滤sourceVersion(commitID)参数以获取构建列表。