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

Quality Gates for new model code coverage plugin

XMLWordPrintable

      The code coverage plugin currently sets the results of a build to stable, unstable or failed based on an evaluation of the old model in CoverageProcessor#processThresholds.

      A similar functionality is required for the new model in CoverageNode: this new functionality should create a QualityGateStatus (similar to the warnings plugin) based on a list of QualityGates for a specific CoverageNode (or for the aggregated coverage metric results of the CoverageNode). The evaluation should be logged into a simple logger instance like in QualityGateEvaluator#FormattedLogger.
      A similar functionality is available in the warnings plugin: it sets the quality gate result based on an evaluation of the number of warnings:

      A quality gate has three properties:

      • the percentage that must be achieved in order to pass the quality gate
      • the type of coverage that will be evaluated (Class, Line, Branch, etc.)
      • the build status that should be used if the quality gate is not passed (failed or unstable)

            drulli Ulli Hafner
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: