Teamcity API可以在更改调用中获取构建详细信息

时间:2018-08-16 14:15:53

标签: teamcity

是否可以从Changes api调用获取构建详细信息。

我正在尝试跟踪,但是它不会为构建字段返回任何内容。

http://server/app/rest/changes?locator=build:(id:13046)&fields=build,change

我得到的是更改列表,但没有构建细节,是否可以通过单个api调用来实现?

1 个答案:

答案 0 :(得分:1)

您可以将http://server/app/rest/builds?locator=buildId:13046&fields=build(id,buildTypeId,number,status,state,running,percentageComplete,branchName,defaultBranch,unspecifiedBranch,history,pinned,statusText,changes(count,href,change)) API与以下内容一起使用,而不是检查Change API:

http://server/app/rest/swagger.json

您可以在此处找到可用属性的完整API规范:

Build

在{{1}}定义内。