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

Jacoco plugin only updates trend graph for a successful build

    Details

    • Similar Issues:

      Description

      Similar to JENKINS-49351, when a static checker declares the build unstable or failed, the coverage trend graph is not updated, even when jacoco runs successfully. 

      Jacoco should update the graph if the plugin ran, independent of the actual build result, not only for successful builds.

        Attachments

          Activity

          Hide
          theellis Daniel Ellis added a comment -

          I have a similar situation where I want to set a build status to Failed but still have code coverage metrics I want to report on the project / build page. As long as I set the build status to Failed after I publish the jacoco results, the code coverage report will show up on the build page. I'm fine with that workaround, although I do think that the report should show up regardless of build status. One thing I can't get around, though, is if the build status is Failed, the Code Coverage Trend graph on the project page is not updated with the failed build. 

          Show
          theellis Daniel Ellis added a comment - I have a similar situation where I want to set a build status to Failed but still have code coverage metrics I want to report on the project / build page. As long as I set the build status to Failed after I publish the jacoco results, the code coverage report will show up on the build page. I'm fine with that workaround, although I do think that the report should show up regardless of build status. One thing I can't get around, though, is if the build status is Failed, the Code Coverage Trend graph on the project page is not updated with the failed build. 

            People

            • Assignee:
              ognjenb Ognjen Bubalo
              Reporter:
              hgschmie Henning Schmiedehausen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: