TeamCity Rest API

不打扰是莪最后的温柔 提交于 2019-12-21 06:08:15

问题


How to get the changes of a teamcity build? I got the following URL wich list all the build changes and provides a URL using which we can view the changes

http://teamcityserver/httpAuth/app/rest/changes?buildType=id:bt2

However the given URL "/httpAuth/app/rest/changes/id:433" takes the id which is modification id.

  1. How do we get the modification ID?
  2. Can we pass the internal build ID or number to get the chnages of a specific build?

回答1:


Perhaphs what you need is this: "https://teamcity.blabla.com/httpAuth/app/rest/changes/buildType:(id:20140010),build:(number:102)" (yes it has a comma in there)

This gives me the changes for a specific build.




回答2:


First Get the build ID, say it's 88506, then the below request url will list all the changes in the build:-

https://teamcityServer/httpAuth/app/rest/changes?locator=build:(id:88506)



来源:https://stackoverflow.com/questions/20088413/teamcity-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!