Class CoverageQualityGate
- 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 ofquality gates
will be evaluated and the overall quality gate status will be reported in Jenkins UI.- Author:
- Johannes Walter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageQualityGate.Descriptor
Descriptor of theCoverageQualityGate
.
-
Constructor Summary
Constructors Constructor Description CoverageQualityGate(double threshold, Baseline type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality)
Creates a new instance ofCoverageQualityGate
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metric
getMetric()
String
getName()
Returns a human-readable name of the quality gate.Baseline
getType()
void
setType(Baseline type)
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
-
-
-
-
Constructor Detail
-
CoverageQualityGate
@DataBoundConstructor public CoverageQualityGate(double threshold, Baseline type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality)
Creates a new instance ofCoverageQualityGate
.- Parameters:
threshold
- minimum or maximum value that triggers this quality gate
-
-
Method Detail
-
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 classio.jenkins.plugins.util.QualityGate
- Returns:
- a human-readable name
-
getMetric
public Metric getMetric()
-
getType
public Baseline getType()
-
-