Package io.jenkins.plugins.livewall
Enum Class JobStatus
- All Implemented Interfaces:
Serializable,Comparable<JobStatus>,Constable
The handful of states a tile on the wall can be in.
Deliberately coarser than Result: a wall seen from the other side of the
room can carry about six distinguishable colours, no more. "Currently building" is not a status
here, it is a flag on top of one, because a running job still has a last known outcome worth
showing behind the animation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetId()Stable lowercase identifier, used as thedata-statusattribute and JSON value.intLower is worse.booleanTrue for the states an operator would want to look at.static JobStatusMaps a Jenkins ball colour onto a wall status, ignoring the_animesuffix (whether a job is building is tracked separately).static JobStatusReturns the enum constant of this class with the specified name.static JobStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILURE
Something is broken and somebody should care. Sorted first. -
UNSTABLE
Built, but tests failed. -
ABORTED
Cancelled by a human or a timeout. -
NOT_BUILT
Configured but never built, or pending its first run. -
DISABLED
Explicitly disabled. -
SUCCESS
All good.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
Stable lowercase identifier, used as thedata-statusattribute and JSON value. -
getSeverity
public int getSeverity()Lower is worse. Used when the wall is sorted so that problems float to the top left. -
of
Maps a Jenkins ball colour onto a wall status, ignoring the_animesuffix (whether a job is building is tracked separately). -
isProblem
public boolean isProblem()True for the states an operator would want to look at. Used byStatusScope.
-