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

Answered

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

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.

0

Please sign in to leave a comment.