Klasse WarningsQualityGate
java.lang.Object
hudson.model.AbstractDescribableImpl<io.jenkins.plugins.util.QualityGate>
io.jenkins.plugins.util.QualityGate
io.jenkins.plugins.analysis.core.util.WarningsQualityGate
- Alle implementierten Schnittstellen:
Describable<io.jenkins.plugins.util.QualityGate>
,Serializable
public class WarningsQualityGate
extends io.jenkins.plugins.util.QualityGate
Defines a quality gate based on a specific threshold of issues (total, new, delta) 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:
- Ullrich Hafner
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
Available quality gate types.static class
Descriptor of theWarningsQualityGate
.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
KonstruktorBeschreibungWarningsQualityGate
(int threshold, WarningsQualityGate.QualityGateType type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality) Creates a new instance ofWarningsQualityGate
.Creates a new instance ofWarningsQualityGate
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Returns the method that should be used to determine the actual number of issues in the build.getName()
getType()
int
hashCode()
boolean
void
setUnstable
(boolean unstable) Veraltet.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
-
WarningsQualityGate
Creates a new instance ofWarningsQualityGate
.- Parameter:
type
- the type of the quality gate
-
WarningsQualityGate
public WarningsQualityGate(int threshold, WarningsQualityGate.QualityGateType type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality) Creates a new instance ofWarningsQualityGate
.- Parameter:
threshold
- the minimum number of issues that fails the quality gatetype
- the type of the quality gatecriticality
- the criticality of the quality gate
-
-
Methodendetails
-
isUnstable
public boolean isUnstable() -
setUnstable
Veraltet.useQualityGate.setCriticality(QualityGateCriticality)
insteadSets the criticality of the quality gate.- Parameter:
unstable
- the criticality of the quality gate
-
getActualSizeMethodReference
Returns the method that should be used to determine the actual number of issues in the build.- Gibt zurück:
- threshold getter
-
getName
- Angegeben von:
getName
in Klasseio.jenkins.plugins.util.QualityGate
-
getType
-
equals
-
hashCode
public int hashCode()
-
QualityGate.setCriticality(QualityGateCriticality)
instead