Enum Class FailureType

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

public enum FailureType extends Enum<FailureType>
Classifies why a build failed on a particular executor slot. Only NODE_FAULT and TIMEOUT count toward the node-avoidance threshold — they indicate an environment problem on the node itself. The rest are recorded for information but do not penalise the node.
  • Enum Constant Details

    • NONE

      public static final FailureType NONE
      Build succeeded — positive signal for the node.
    • NODE_FAULT

      public static final FailureType NODE_FAULT
      The node's environment caused the failure: agent disconnected, channel closed, out-of-memory, disk full, required tool absent, launcher error. Counts toward the avoidance threshold.
    • CODE_FAULT

      public static final FailureType CODE_FAULT
      The build code/tests failed (non-zero exit code, compile error, test failure). Not the node's fault.
    • DOWNSTREAM_FAIL

      public static final FailureType DOWNSTREAM_FAIL
      A build job:'…' trigger step failed. The downstream job is the problem; this node just ran the trigger step correctly.
    • TIMEOUT

      public static final FailureType TIMEOUT
      The build was killed by a timeout step. Counts toward the threshold because it may indicate the node is overloaded or starved of resources.
    • ABORTED

      public static final FailureType ABORTED
      Explicitly aborted by a user or the system — not a node problem.
    • UNKNOWN

      public static final FailureType UNKNOWN
      Could not determine the cause. Recorded but not counted.
  • Method Details

    • values

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