问题
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.
- How do we get the modification ID?
- 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