Package io.jenkins.plugins.util
Enum QualityGateStatus
- All Implemented Interfaces:
Serializable
,Comparable<QualityGateStatus>
Result of a quality gate evaluation performed by a subclass of
QualityGateEvaluator
.- Author:
- Ullrich Hafner
-
Enum Constant Summary
Enum ConstantDescriptionQuality gate has been missed: severity is an error.Quality gate has been missed: severity is a failure.Quality gate is inactive, so result evaluation is not available.Quality gate has been missed: severity is a note.Quality gate has been passed.Quality gate has been missed: severity is a warning. -
Method Summary
Modifier and TypeMethodDescriptionReturns the localized description to be used in the UI.Returns the associatedResult
icon class to be used in the UI.Returns the associatedResult
.boolean
Returns whether the quality gate has been passed (or has not been activated at all).boolean
isWorseThan
(QualityGateStatus other) Returns whether this status is worse than the specified status.static QualityGateStatus
Returns the enum constant of this type with the specified name.static QualityGateStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INACTIVE
Quality gate is inactive, so result evaluation is not available. -
PASSED
Quality gate has been passed. -
NOTE
Quality gate has been missed: severity is a note. -
WARNING
Quality gate has been missed: severity is a warning. -
ERROR
Quality gate has been missed: severity is an error. -
FAILED
Quality gate has been missed: severity is a failure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getIconClass
Returns the associatedResult
icon class to be used in the UI.- Returns:
- Jenkins'
Result
icon class
-
getDescription
Returns the localized description to be used in the UI.- Returns:
- the localized description
-
isSuccessful
public boolean isSuccessful()Returns whether the quality gate has been passed (or has not been activated at all).- Returns:
true
if the quality gate has been passed,false
otherwise
-
getResult
Returns the associatedResult
.- Returns:
- the associated
Result
-
isWorseThan
Returns whether this status is worse than the specified status.- Parameters:
other
- the other status- Returns:
true
if this status is worse than the other status,false
otherwise
-