Klasse CoverageQualityGate
java.lang.Object
hudson.model.AbstractDescribableImpl<io.jenkins.plugins.util.QualityGate>
io.jenkins.plugins.util.QualityGate
io.jenkins.plugins.coverage.metrics.steps.CoverageQualityGate
- Alle implementierten Schnittstellen:
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.- Autor:
- Johannes Walter
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen io.jenkins.plugins.util.QualityGate
io.jenkins.plugins.util.QualityGate.QualityGateCriticality, io.jenkins.plugins.util.QualityGate.QualityGateDescriptor
-
Konstruktorübersicht
KonstruktorBeschreibungCoverageQualityGate
(edu.hm.hafner.coverage.Metric metric) Creates a new instance ofCoverageQualityGate
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungedu.hm.hafner.coverage.Metric
getName()
Returns a human-readable name of the quality gate.final void
setBaseline
(Baseline baseline) Sets the baseline that will be used for the quality gate evaluation.Von Klasse geerbte Methoden io.jenkins.plugins.util.QualityGate
getCriticality, getIntegerThreshold, getStatus, getThreshold, setCriticality, setIntegerThreshold, setThreshold, toString
Von Klasse geerbte Methoden hudson.model.AbstractDescribableImpl
getDescriptor
-
Konstruktordetails
-
CoverageQualityGate
@DataBoundConstructor public CoverageQualityGate(edu.hm.hafner.coverage.Metric metric) Creates a new instance ofCoverageQualityGate
.- Parameter:
metric
- the metric to compare
-
-
Methodendetails
-
setBaseline
Sets the baseline that will be used for the quality gate evaluation.- Parameter:
baseline
- the baseline to use
-
getName
Returns a human-readable name of the quality gate.- Angegeben von:
getName
in Klasseio.jenkins.plugins.util.QualityGate
- Gibt zurück:
- a human-readable name
-
getMetric
public edu.hm.hafner.coverage.Metric getMetric() -
getBaseline
-