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
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable quality gate types.static classDescriptor 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
ConstructorsConstructorDescriptionWarningsQualityGate(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 TypeMethodDescriptionbooleanReturns the method that should be used to determine the actual number of issues in the build.getName()getType()inthashCode()booleanvoidsetUnstable(boolean unstable) Deprecated.Methods inherited from class io.jenkins.plugins.util.QualityGate
getCriticality, getIntegerThreshold, getStatus, getThreshold, setCriticality, setIntegerThreshold, setThreshold, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.model.Describable
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:
getNamein classio.jenkins.plugins.util.QualityGate
-
getType
-
equals
-
hashCode
public int hashCode()
-
QualityGate.setCriticality(QualityGateCriticality)instead