Package io.jenkins.plugins.util
Klasse QualityGate
- Alle implementierten Schnittstellen:
Describable<QualityGate>,Serializable
public abstract class QualityGate
extends AbstractDescribableImpl<QualityGate>
implements Serializable
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
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumDetermines the Jenkins build result if the quality gate is failed.static classDescriptor of theQualityGate. -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedQualityGate(double threshold) Creates a new instance ofQualityGate. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract StringgetName()Returns a human-readable name of the quality gate.final QualityGateStatusfinal doublefinal voidsetCriticality(QualityGate.QualityGateCriticality criticality) Sets the criticality of this quality gate.toString()Von Klasse geerbte Methoden hudson.model.AbstractDescribableImpl
getDescriptor
-
Konstruktordetails
-
QualityGate
protected QualityGate(double threshold) Creates a new instance ofQualityGate.- Parameter:
threshold- minimum or maximum value that triggers this quality gate
-
-
Methodendetails
-
setCriticality
Sets the criticality of this quality gate. When a quality gate has been missed, this property determines whether the result of the associated coverage stage will be marked as unstable or failure.- Parameter:
criticality- the criticality for this quality gate
-
getName
Returns a human-readable name of the quality gate.- Gibt zurück:
- a human-readable name
-
toString
-
getThreshold
public final double getThreshold() -
getCriticality
-
getStatus
-