Enum QualityGate.QualityGateResult
- java.lang.Object
-
- java.lang.Enum<QualityGate.QualityGateResult>
-
- io.jenkins.plugins.analysis.core.util.QualityGate.QualityGateResult
-
- All Implemented Interfaces:
Serializable
,Comparable<QualityGate.QualityGateResult>
- Enclosing class:
- QualityGate
public static enum QualityGate.QualityGateResult extends Enum<QualityGate.QualityGateResult>
Determines the Jenkins build result if the quality gate is failed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QualityGateStatus
getStatus()
Returns the status.static QualityGate.QualityGateResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static QualityGate.QualityGateResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSTABLE
public static final QualityGate.QualityGateResult UNSTABLE
The build will be marked as unstable.
-
FAILURE
public static final QualityGate.QualityGateResult FAILURE
The build will be marked as failed.
-
-
Method Detail
-
values
public static QualityGate.QualityGateResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QualityGate.QualityGateResult c : QualityGate.QualityGateResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QualityGate.QualityGateResult valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getStatus
public QualityGateStatus getStatus()
Returns the status.- Returns:
- the status
-
-