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

Adopt Threshold conditions (e.g. from Cobertura) so that the reporter can fail the build depending on conditions

    Details

    • Sprint:
      GSoC - Coding Phase 1
    • Similar Issues:

      Description

      Related discussion:

      • Share: I do not know whether it should be per-project or per-language type
      • Oleg: I would propose a global thing to KISS and then expand

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: cizezsy
          Path:
          src/main/java/io/jenkins/plugins/coverage/CoverageAction.java
          src/main/java/io/jenkins/plugins/coverage/CoverageProcessor.java
          src/main/java/io/jenkins/plugins/coverage/CoveragePublisher.java
          src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapter.java
          src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor.java
          src/main/java/io/jenkins/plugins/coverage/adapter/XMLCoverageReportAdapter.java
          src/main/java/io/jenkins/plugins/coverage/adapter/util/XMLUtils.java
          src/main/java/io/jenkins/plugins/coverage/exception/ConversionException.java
          src/main/java/io/jenkins/plugins/coverage/exception/CoverageException.java
          src/main/java/io/jenkins/plugins/coverage/threshold/Threshold.java
          src/main/resources/io/jenkins/plugins/coverage/CoveragePublisher/config.jelly
          src/main/resources/io/jenkins/plugins/coverage/Messages.properties
          src/main/resources/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor/config.jelly
          src/main/webapp/css/style.css
          http://jenkins-ci.org/commit/code-coverage-api-plugin/bf05960e959f8dcd85bb7112b220328881b15591
          Log:
          JENKINS-51364 Adopt Threshold conditions (e.g. from Cobertura) so that the reporter can fail the build depending on conditions.

          • add global threshold for all coverage report.
          • add local threshold for each coverage report
          • add 'fail if unhealthy' option
          • add health report
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: cizezsy Path: src/main/java/io/jenkins/plugins/coverage/CoverageAction.java src/main/java/io/jenkins/plugins/coverage/CoverageProcessor.java src/main/java/io/jenkins/plugins/coverage/CoveragePublisher.java src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapter.java src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor.java src/main/java/io/jenkins/plugins/coverage/adapter/XMLCoverageReportAdapter.java src/main/java/io/jenkins/plugins/coverage/adapter/util/XMLUtils.java src/main/java/io/jenkins/plugins/coverage/exception/ConversionException.java src/main/java/io/jenkins/plugins/coverage/exception/CoverageException.java src/main/java/io/jenkins/plugins/coverage/threshold/Threshold.java src/main/resources/io/jenkins/plugins/coverage/CoveragePublisher/config.jelly src/main/resources/io/jenkins/plugins/coverage/Messages.properties src/main/resources/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor/config.jelly src/main/webapp/css/style.css http://jenkins-ci.org/commit/code-coverage-api-plugin/bf05960e959f8dcd85bb7112b220328881b15591 Log: JENKINS-51364 Adopt Threshold conditions (e.g. from Cobertura) so that the reporter can fail the build depending on conditions. add global threshold for all coverage report. add local threshold for each coverage report add 'fail if unhealthy' option add health report
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ShenYu Zheng
          Path:
          src/main/java/io/jenkins/plugins/coverage/CoverageAction.java
          src/main/java/io/jenkins/plugins/coverage/CoverageProcessor.java
          src/main/java/io/jenkins/plugins/coverage/CoveragePublisher.java
          src/main/java/io/jenkins/plugins/coverage/adapter/CoberturaReportAdapter.java
          src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapter.java
          src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor.java
          src/main/java/io/jenkins/plugins/coverage/adapter/Detectable.java
          src/main/java/io/jenkins/plugins/coverage/adapter/JacocoReportAdapter.java
          src/main/java/io/jenkins/plugins/coverage/adapter/XMLCoverageReportAdapter.java
          src/main/java/io/jenkins/plugins/coverage/adapter/parser/CoverageParser.java
          src/main/java/io/jenkins/plugins/coverage/adapter/parser/JavaCoverageParser.java
          src/main/java/io/jenkins/plugins/coverage/adapter/util/XMLUtils.java
          src/main/java/io/jenkins/plugins/coverage/exception/ConversionException.java
          src/main/java/io/jenkins/plugins/coverage/exception/CoverageException.java
          src/main/java/io/jenkins/plugins/coverage/targets/CoverageResult.java
          src/main/java/io/jenkins/plugins/coverage/threshold/Threshold.java
          src/main/resources/io/jenkins/plugins/coverage/CoveragePublisher/config.jelly
          src/main/resources/io/jenkins/plugins/coverage/Messages.properties
          src/main/resources/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor/config.jelly
          src/main/resources/io/jenkins/plugins/coverage/adapter/jacoco-to-standard.xsl
          src/main/resources/io/jenkins/plugins/coverage/threshold/Threshold/config.jelly
          src/main/webapp/css/style.css
          src/test/java/io/jenkins/plugins/coverage/CoveragePublisherPipelineTest.java
          src/test/resources/cobertura-coverage.xml
          src/test/resources/coverage-with-lots-of-data.xml
          src/test/resources/io/jenkins/plugins/coverage/cobertura-coverage.xml
          src/test/resources/io/jenkins/plugins/coverage/coverage-with-lots-of-data.xml
          src/test/resources/io/jenkins/plugins/coverage/jacoco.xml
          src/test/resources/jacoco.xml
          http://jenkins-ci.org/commit/code-coverage-api-plugin/e0992be1941f442d74e86d3b51b293a68194645d
          Log:
          Merge pull request #6 from cizezsy/threshold

          JENKINS-51364 Adopt Threshold conditions (e.g. from Cobertura) so t…

          Compare: https://github.com/jenkinsci/code-coverage-api-plugin/compare/c3a07da49be4...e0992be1941f
          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ShenYu Zheng Path: src/main/java/io/jenkins/plugins/coverage/CoverageAction.java src/main/java/io/jenkins/plugins/coverage/CoverageProcessor.java src/main/java/io/jenkins/plugins/coverage/CoveragePublisher.java src/main/java/io/jenkins/plugins/coverage/adapter/CoberturaReportAdapter.java src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapter.java src/main/java/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor.java src/main/java/io/jenkins/plugins/coverage/adapter/Detectable.java src/main/java/io/jenkins/plugins/coverage/adapter/JacocoReportAdapter.java src/main/java/io/jenkins/plugins/coverage/adapter/XMLCoverageReportAdapter.java src/main/java/io/jenkins/plugins/coverage/adapter/parser/CoverageParser.java src/main/java/io/jenkins/plugins/coverage/adapter/parser/JavaCoverageParser.java src/main/java/io/jenkins/plugins/coverage/adapter/util/XMLUtils.java src/main/java/io/jenkins/plugins/coverage/exception/ConversionException.java src/main/java/io/jenkins/plugins/coverage/exception/CoverageException.java src/main/java/io/jenkins/plugins/coverage/targets/CoverageResult.java src/main/java/io/jenkins/plugins/coverage/threshold/Threshold.java src/main/resources/io/jenkins/plugins/coverage/CoveragePublisher/config.jelly src/main/resources/io/jenkins/plugins/coverage/Messages.properties src/main/resources/io/jenkins/plugins/coverage/adapter/CoverageReportAdapterDescriptor/config.jelly src/main/resources/io/jenkins/plugins/coverage/adapter/jacoco-to-standard.xsl src/main/resources/io/jenkins/plugins/coverage/threshold/Threshold/config.jelly src/main/webapp/css/style.css src/test/java/io/jenkins/plugins/coverage/CoveragePublisherPipelineTest.java src/test/resources/cobertura-coverage.xml src/test/resources/coverage-with-lots-of-data.xml src/test/resources/io/jenkins/plugins/coverage/cobertura-coverage.xml src/test/resources/io/jenkins/plugins/coverage/coverage-with-lots-of-data.xml src/test/resources/io/jenkins/plugins/coverage/jacoco.xml src/test/resources/jacoco.xml http://jenkins-ci.org/commit/code-coverage-api-plugin/e0992be1941f442d74e86d3b51b293a68194645d Log: Merge pull request #6 from cizezsy/threshold JENKINS-51364 Adopt Threshold conditions (e.g. from Cobertura) so t… Compare: https://github.com/jenkinsci/code-coverage-api-plugin/compare/c3a07da49be4...e0992be1941f * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

            People

            • Assignee:
              cizezsy Shenyu Zheng
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: