How to get information about last successful build on defined branch by TeamCity API?

Hello,
I can't find out how to get last successful build by build type and branch. I got last successul build by using:

https://<TeamCity Server>/httpAuth/app/rest/buildTypes/id:<buildtype>/running:false,status:success

But I need to get last successful build by build type and branch. How to do that?

Thank you.

2 comments
Comment actions Permalink

Hello,

You can also add branch locator at the end: "branch:<branch locator>". It can be the branch name displayed in the UI or "(name:<name>,default:<true/false/any>,unspecified:<true/false/any>,branched:<true/false/any>)". If not specified, only builds from the default branchare returned.

0
Comment actions Permalink

Thank you, that's what I need


0

Please sign in to leave a comment.