1 Replies Last post: Apr 15, 2015 4:26 PM by Yegor Yarko  
Jørund Vier Skriubakken Newbie 43 posts since
Aug 4, 2008
Currently Being Moderated

Feb 8, 2013 5:37 PM

Getting changes for last successful build via REST API

I am trying to make request to get changes for last successful build.

 

I was hoping something like this was possible:

http://myteamcity/httpAuth/app/rest/changes?buildType:(id:xxx)&build=lastSuccessful

but it is not

 

Then I see that the application.wadl for the API call "changes" contains an "changeLocator", but I cannot see it documented somewhere.

 

Could someone point me in the right direction? Like maybe to the source code of the plugin. Maybe it's possible to understand it from there....

 

The doc seems a bit short on this: http://confluence.jetbrains.com/display/TW/REST+API+Plugin

Yegor Yarko JetBrains 1,882 posts since
May 5, 2004
Currently Being Moderated
Apr 15, 2015 4:26 PM in response to: Jørund Vier Skriubakken
Re: Getting changes for last successful build via REST API

It's been a while since the question, but I'd still answer now:

 

You were almost right. in the current version of TeamCity you can use URL like:

 

http://myteamcity/httpAuth/app/rest/changes?locator=buildType:(id:XXX),build:(buildType:(id:XXX),status:SUCCESS)

 

Also check a related question which has some hints.

More Like This

  • Retrieving data ...