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

Jacoco plugin should also run on unstable or failed builds

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • jacoco-plugin
    • None
    • 3.0.5

      We use multiple static checkers (findbugs, pmd etc.) with Jacoco in a pipeline. It is possible that one or more of the static checkers declare a build unstable or failed (because the thresholds for issues are crossed) even though the build itself and all tests pass.

      If I add the "jacoco()" step after "findbugs()", then jacoco will skip the coverage report if findbugs declared the build unstable/failed. If I add it before, it will create the report just fine. 

      Most other post build actions such as PMD, Findbugs, Warnings etc. have a switch "Run Always". Jacoco should have the same switch.

       

          [JENKINS-49351] Jacoco plugin should also run on unstable or failed builds

          Henning Schmiedehausen created issue -
          Alexander Kress made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          centic made changes -
          Released As New: 3.0.5 or 3.1.0
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          centic made changes -
          Released As Original: 3.0.5 or 3.1.0 New: 3.0.5

            ognjenb Ognjen Bubalo
            hgschmie Henning Schmiedehausen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: