java.lang.Object
hudson.model.AbstractDescribableImpl<io.jenkins.plugins.util.QualityGate>
io.jenkins.plugins.util.QualityGate
com.parasoft.findings.jenkins.coverage.api.metrics.steps.CoverageQualityGate
All Implemented Interfaces:
Describable<io.jenkins.plugins.util.QualityGate>, Serializable

public class CoverageQualityGate extends io.jenkins.plugins.util.QualityGate
Defines a quality gate based on a specific threshold of code coverage in the current build. After a build has been finished, a set of quality gates will be evaluated and the overall quality gate status will be reported in Jenkins UI.
Author:
Johannes Walter
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Descriptor of the CoverageQualityGate.

    Nested classes/interfaces inherited from class io.jenkins.plugins.util.QualityGate

    io.jenkins.plugins.util.QualityGate.QualityGateCriticality, io.jenkins.plugins.util.QualityGate.QualityGateDescriptor
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoverageQualityGate(double threshold, Baseline type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality)
    Creates a new instance of CoverageQualityGate.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns a human-readable name of the quality gate.
     
    final void
    Sets the baseline that will be used for the quality gate evaluation.

    Methods inherited from class io.jenkins.plugins.util.QualityGate

    getCriticality, getIntegerThreshold, getStatus, getThreshold, setCriticality, setIntegerThreshold, setThreshold, toString

    Methods inherited from class hudson.model.AbstractDescribableImpl

    getDescriptor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CoverageQualityGate

      @DataBoundConstructor public CoverageQualityGate(double threshold, Baseline type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality)
      Creates a new instance of CoverageQualityGate.
      Parameters:
      threshold - minimum or maximum value that triggers this quality gate
  • Method Details

    • setType

      @DataBoundSetter public final void setType(Baseline type)
      Sets the baseline that will be used for the quality gate evaluation.
      Parameters:
      type - the baseline to use
    • getName

      public String getName()
      Returns a human-readable name of the quality gate.
      Specified by:
      getName in class io.jenkins.plugins.util.QualityGate
      Returns:
      a human-readable name
    • getMetric

      public Metric getMetric()
    • getType

      public Baseline getType()