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

Display a message when missing coverage thresholds fails build

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • cobertura-plugin
    • None

      When the Cobertura plugin is configured to fail a build, or show a build as unstable for dipping below coverage thresholds, there is no obvious message on the build page that shows this. The user sees there are no test failures, and coverage percentages for Packages, Files, Classes, etc...

      If the user is not familiar with what the configured thresholds are, they may not know that a Lines percent coverage of 82% is under the threshold of 90%, and that's why the build failed. This is particularly important when using auto-update thresholds. While the information is in the build log, logs can be long and complicated. A message on the build page would clear up this confusion quickly.

        1. BuildPage.png
          BuildPage.png
          21 kB
        2. Log.png
          Log.png
          40 kB

          [JENKINS-47639] Display a message when missing coverage thresholds fails build

          Code changed in jenkins
          User: Jeff Pearce
          Path:
          src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java
          src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java
          src/main/resources/hudson/plugins/cobertura/CoberturaBuildAction/summary.jelly
          http://jenkins-ci.org/commit/cobertura-plugin/1c2ef417ce0f342f5eb400870e2b47adb3153d40
          Log:
          JENKINS-47639 Display a message when missing coverage fails build

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jeff Pearce Path: src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java src/main/resources/hudson/plugins/cobertura/CoberturaBuildAction/summary.jelly http://jenkins-ci.org/commit/cobertura-plugin/1c2ef417ce0f342f5eb400870e2b47adb3153d40 Log: JENKINS-47639 Display a message when missing coverage fails build

          Code changed in jenkins
          User: Jeff Pearce
          Path:
          pom.xml
          src/main/java/hudson/plugins/cobertura/CoberturaAbortException.java
          src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java
          src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java
          src/main/resources/hudson/plugins/cobertura/CoberturaBuildAction/summary.jelly
          http://jenkins-ci.org/commit/cobertura-plugin/544b248f083d0ce24f9038ccfdac39ab1fce5bd5
          Log:
          JENKINS-47639 Display a message when missing coverage fails build (#81)

          • JENKINS-47639 Display a message when missing coverage fails build
          • Update comment for CoberturaAbortException
          • Fix build error
          • Minor format change
          • Add license to POM

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jeff Pearce Path: pom.xml src/main/java/hudson/plugins/cobertura/CoberturaAbortException.java src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java src/main/resources/hudson/plugins/cobertura/CoberturaBuildAction/summary.jelly http://jenkins-ci.org/commit/cobertura-plugin/544b248f083d0ce24f9038ccfdac39ab1fce5bd5 Log: JENKINS-47639 Display a message when missing coverage fails build (#81) JENKINS-47639 Display a message when missing coverage fails build Update comment for CoberturaAbortException Fix build error Minor format change Add license to POM

          Jeff Pearce added a comment -

          Fixed in release 1.12

          Jeff Pearce added a comment - Fixed in release 1.12

            jeffpearce Jeff Pearce
            andyjohns1 ajohns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: