Enum Class PrecedenceMode

java.lang.Object
java.lang.Enum<PrecedenceMode>
pl.damianszczepanik.jenkins.buildhistorymanager.model.PrecedenceMode
All Implemented Interfaces:
Serializable, Comparable<PrecedenceMode>, Constable

public enum PrecedenceMode extends Enum<PrecedenceMode>
Decides which rules should be evaluated first, which skipped.
Author:
Damian Szczepanik (damianszczepanik@github)
  • Enum Constant Details

    • JOB_ONLY

      public static final PrecedenceMode JOB_ONLY
      Use only job level configuration, ignores others. Default option, should be first on the list.
    • GLOBAL_ONLY

      public static final PrecedenceMode GLOBAL_ONLY
      Use only global configuration, ignores others.
    • GLOBAL_THEN_JOB

      public static final PrecedenceMode GLOBAL_THEN_JOB
      Use global configuration, then job level configuration.
    • JOB_THEN_GLOBAL

      public static final PrecedenceMode JOB_THEN_GLOBAL
      Use job level configuration, then global configuration.
  • Method Details

    • values

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