Enum Class JobStatus

java.lang.Object
java.lang.Enum<JobStatus>
io.jenkins.plugins.livewall.JobStatus
All Implemented Interfaces:
Serializable, Comparable<JobStatus>, Constable

public enum JobStatus extends Enum<JobStatus>
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.

  • Enum Constant Details

    • FAILURE

      public static final JobStatus FAILURE
      Something is broken and somebody should care. Sorted first.
    • UNSTABLE

      public static final JobStatus UNSTABLE
      Built, but tests failed.
    • ABORTED

      public static final JobStatus ABORTED
      Cancelled by a human or a timeout.
    • NOT_BUILT

      public static final JobStatus NOT_BUILT
      Configured but never built, or pending its first run.
    • DISABLED

      public static final JobStatus DISABLED
      Explicitly disabled.
    • SUCCESS

      public static final JobStatus SUCCESS
      All good.
  • Method Details

    • values

      public static JobStatus[] 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

      public static JobStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public String getId()
      Stable lowercase identifier, used as the data-status attribute 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

      public static JobStatus of(BallColor color)
      Maps a Jenkins ball colour onto a wall status, ignoring the _anime suffix (whether a job is building is tracked separately).
    • isProblem

      public boolean isProblem()
      True for the states an operator would want to look at. Used by StatusScope.