Class WarningsQualityGate
java.lang.Object
hudson.model.AbstractDescribableImpl<io.jenkins.plugins.util.QualityGate>
io.jenkins.plugins.util.QualityGate
io.jenkins.plugins.analysis.core.util.WarningsQualityGate
- All Implemented Interfaces:
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.- Author:
- Ullrich Hafner
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Available quality gate types.static class
Descriptor of theWarningsQualityGate
.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
ConstructorDescriptionWarningsQualityGate
(int threshold, WarningsQualityGate.QualityGateType type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality) Creates a new instance ofWarningsQualityGate
.Creates a new instance ofWarningsQualityGate
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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) Deprecated.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 Details
-
WarningsQualityGate
Creates a new instance ofWarningsQualityGate
.- Parameters:
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
.- Parameters:
threshold
- the minimum number of issues that fails the quality gatetype
- the type of the quality gatecriticality
- the criticality of the quality gate
-
-
Method Details
-
isUnstable
public boolean isUnstable() -
setUnstable
Deprecated.useQualityGate.setCriticality(QualityGateCriticality)
insteadSets the criticality of the quality gate.- Parameters:
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.- Returns:
- threshold getter
-
getName
- Specified by:
getName
in classio.jenkins.plugins.util.QualityGate
-
getType
-
equals
-
hashCode
public int hashCode()
-
QualityGate.setCriticality(QualityGateCriticality)
instead