How to get the Project Name for all the Successful Projects

Answered

Hi Team,

 

Is there any way to get the project names for all the Passed plans in the build chain using Rest API ?

http://teamcity:8111/app/rest/builds?locator=snapshotDependency:(to:(id:'buildID'),includeInitial:true),defaultFilter:false,status:SUCCESS
 
but this API doesn't provide me the project names, Can you please let me know ?
 
Thanks 
Chaitanya
0
1 comment

Hello Chaitanya,

Could you please try this request? It extends the one you initially provided by fields section (essentially listing the fields and entities required in the response):

/app/rest/builds?locator=snapshotDependency:(to:(id:<buildID>),includeInitial:true),defaultFilter:false,status:SUCCESS&fields=build(id,buildType(id,projectId),status,state)

Please let me know if this works for you.

0

Please sign in to leave a comment.