Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37942

Build Failure Analyzer: No info added to api/json output for build page

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Ubuntu 14.03 + Firefox 48.0

      After installing the build failure analyzer plugin:
      Adding /api/json to the a build page displaying a recognized Failure pattern =>
      No output from the build failure analyzer plugin appears in the json output.

      I assume that this is an unimplemented feature. For the sake of automated build health monitoring, it would be very useful to have BFA cause information injected into the JSON output in that context.

          [JENKINS-37942] Build Failure Analyzer: No info added to api/json output for build page

          I would love this for exactly the same reason:  automated build health monitoring.  We have tools that are able to scrape the api/json page and get data from the Claim plugin.  But it's not available for the Build Failure Analyzer.

          Anyone know of a workaround?  Is there any json API you can query to look up this info for a given build?

          Eric Balin-Watkins added a comment - I would love this for exactly the same reason:  automated build health monitoring.  We have tools that are able to scrape the api/json page and get data from the Claim plugin.  But it's not available for the Build Failure Analyzer. Anyone know of a workaround?  Is there  any json API you can query to look up this info for a given build?

          If you go to job/number/api/json?depth=3 you get the actions hash. Somewhere in there there will be an entry with the _class = 'com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseBuildAction'. You can get the failure information here.

           

          John Griffiths added a comment - If you go to job/number/api/json?depth=3 you get the actions hash. Somewhere in there there will be an entry with the _class = 'com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseBuildAction'. You can get the failure information here.  

          @gnuchu Thank you!  That works fine for my purposes.

          Eric Balin-Watkins added a comment - @gnuchu Thank you!  That works fine for my purposes.

            t_westling Tomas Westling
            hildeth Tom Hildebrandt
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: