get list of personal builds via REST API?
Hi!
We're building a simple information radiator for TC. We're using topic branches in git and would love to put out personal builds onto our TV, with commit messages, build date and committer (personal build starter).
The problem is that I cannot find such information in the build list (http://server/app/rest/builds?locator=...)
How can I get that information?
Thanks for your help!
Please sign in to leave a comment.
Hey
if you are using ASP.NET/ C# then you could use the TeamCitySharp library I created.
You would then do it as follows:
var teamcity = new TeamCitySharp("url:port");
teamcity.Connect("username", "password");
this effectively creates the REST call
http://server//httpAuth/app/rest/builds?locator=personal:true
Paul
Thanks for your quick reply!
I'm using Ruby and using the direct URL you mentioned.
I got to that point you mentioned, but unfortunately the list I got back doesn't tell me which particular build is personal or not, and who was the user who started it. Where can I dig that out from?
Barnabas
> the list I got back doesn't tell me which particular build is personal or not
That's only available when requesting details of r a specific build.
>and who was the user who started it. Where can I dig that out from?
That's not available directly for a build (it will be in 7.0: TW-19717).
Currently, you can get build's changes, and go through them finding personal ones. You can get user from the first personal change.
thanks for your help!