Teamcity API 是否可以在更改调用中获取构建详细信息
Teamcity API is it possible to get build details as part of changes call
是否可以从更改 api 调用中获取构建详细信息。
我正在尝试关注,但 return 构建字段没有任何内容。
http://server/app/rest/changes?locator=build:(id:13046)&fields=build,change
我得到了一个更改列表,但没有构建细节,是否可以通过单个 api 调用来实现?
您可以使用 builds
API 来代替检查变更 API:
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 规范:
http://server/app/rest/swagger.json
在Build
定义里面。
是否可以从更改 api 调用中获取构建详细信息。
我正在尝试关注,但 return 构建字段没有任何内容。
http://server/app/rest/changes?locator=build:(id:13046)&fields=build,change
我得到了一个更改列表,但没有构建细节,是否可以通过单个 api 调用来实现?
您可以使用 builds
API 来代替检查变更 API:
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 规范:
http://server/app/rest/swagger.json
在Build
定义里面。