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

Display a message when missing coverage thresholds fails build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

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

          Activity

          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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
          Show
          scm_issue_link 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
          Hide
          jeffpearce Jeff Pearce added a comment -

          Fixed in release 1.12

          Show
          jeffpearce Jeff Pearce added a comment - Fixed in release 1.12

            People

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

              Dates

              • Created:
                Updated:
                Resolved: