API - Determine which build step(s) caused the failure


I'm working on metrics collection, and it would be very useful to know how many builds failed due to tests, compilation, etc.  I can collect the status from the build object in the API, but I can't figure out how to determine which step (or steps) failed.

Anyone know how to get this from the API?

(cross-post from StackOverflow - I'm hoping the community here has a better answer)

1 comment
Comment actions Permalink

Hello Derrick,

Unfortunately we do not have API to get this information. You can the details of problem: /app/rest/problemOccurrences?locator=build:(<build_locator>), but there is no information about build step. Please feel free to create feature request in our tracker.

As workaround you can create a custom plugin.


Please sign in to leave a comment.