• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • cobertura-plugin
    • None
    • Jenkins Cobertura Plugin: 1.3
      Jenkins: 1.430
      Grails Cobertura plugin for code coverage in the project

      Suppose my code coverage is below 80%. I want the build to be marked as failure by providing an option on the job page or so.

      I think right now it's providing only the change of icons for low coverage.

          [JENKINS-11025] Allow the build to fail on low coverage

          Ravi Teja Lokineni added a comment - Duplicate of https://issues.jenkins-ci.org/browse/JENKINS-8326

          As per the comment this doesn't seem to be a duplicate

          Ravi Teja Lokineni added a comment - As per the comment this doesn't seem to be a duplicate

          Podar Wang added a comment -

          I have successfully added this feature.
          https://github.com/podarsmarty/cobertura-plugin

          Podar Wang added a comment - I have successfully added this feature. https://github.com/podarsmarty/cobertura-plugin

          @Podar can you ask this on the jenkins mailing list probably someone might respond

          Ravi Teja Lokineni added a comment - @Podar can you ask this on the jenkins mailing list probably someone might respond

          Podar Wang added a comment -

          @Ravi, I have done so already. I am still waiting for a response.

          Podar Wang added a comment - @Ravi, I have done so already. I am still waiting for a response.

          I've been waiting for this since a long time. Hoping that it gets accepted and a new version released.

          Ravi Teja Lokineni added a comment - I've been waiting for this since a long time. Hoping that it gets accepted and a new version released.

          Code changed in jenkins
          User: Po-Dar Wang
          Path:
          src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java
          src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java
          src/main/java/hudson/plugins/cobertura/MavenCoberturaBuildAction.java
          src/main/java/hudson/plugins/cobertura/MavenCoberturaPublisher.java
          src/main/java/hudson/plugins/cobertura/renderers/SourceEncoding.java
          src/main/java/hudson/plugins/cobertura/targets/CoverageTarget.java
          src/main/java/hudson/plugins/cobertura/targets/CoverageTree.java
          src/main/java/hudson/plugins/cobertura/targets/CoverageTreeElement.java
          src/main/resources/hudson/plugins/cobertura/CoberturaPublisher/config.jelly
          src/main/resources/hudson/plugins/cobertura/CoberturaPublisher/config.properties
          src/test/java/hudson/plugins/cobertura/CoverageResultTest.java
          src/test/resources/hudson/plugins/cobertura/coverage-with-lots-of-data.xml
          http://jenkins-ci.org/commit/cobertura-plugin/1cef2b6890bf3388e7e80f12bbe8588035049403
          Log:
          Fixed bug:
          JENKINS-14589

          Added Features:
          JENKINS-11025
          JENKINS-8326

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Po-Dar Wang Path: src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java src/main/java/hudson/plugins/cobertura/MavenCoberturaBuildAction.java src/main/java/hudson/plugins/cobertura/MavenCoberturaPublisher.java src/main/java/hudson/plugins/cobertura/renderers/SourceEncoding.java src/main/java/hudson/plugins/cobertura/targets/CoverageTarget.java src/main/java/hudson/plugins/cobertura/targets/CoverageTree.java src/main/java/hudson/plugins/cobertura/targets/CoverageTreeElement.java src/main/resources/hudson/plugins/cobertura/CoberturaPublisher/config.jelly src/main/resources/hudson/plugins/cobertura/CoberturaPublisher/config.properties src/test/java/hudson/plugins/cobertura/CoverageResultTest.java src/test/resources/hudson/plugins/cobertura/coverage-with-lots-of-data.xml http://jenkins-ci.org/commit/cobertura-plugin/1cef2b6890bf3388e7e80f12bbe8588035049403 Log: Fixed bug: JENKINS-14589 Added Features: JENKINS-11025 JENKINS-8326

          sogabe added a comment -

          merged. fix in 1.6.

          sogabe added a comment - merged. fix in 1.6.

            pwang25 Podar Wang
            bond Ravi Teja Lokineni
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: