Get last successful build on a branch

benjamin.morris's Avatar

benjamin.morris

06 May, 2019 07:09 AM

Hi,

We are wondering if it is possible to use the REST api to get the most recent build that succeeded for a specific branch.
One method we have come up with is to get the history on that branch and then search for status == success. The question we had is whether there was an easier way to achieve this?

  1. Support Staff 1 Posted by Owen McDonnell on 06 May, 2019 02:32 PM

    Owen McDonnell's Avatar

    Not an easier way with just the REST API, but here is a script my colleague made to do just that.

  2. Ilya Finkelshteyn closed this discussion on 06 Jul, 2019 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac