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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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