Package hudson.scm

Enum Class PollingResult.Change

All Implemented Interfaces:
Serializable, Comparable<PollingResult.Change>, Constable
Enclosing class:

public static enum PollingResult.Change extends Enum<PollingResult.Change>
Degree of changes between the previous state and this state.
  • Enum Constant Details

    • NONE

      public static final PollingResult.Change NONE
      No change. Two SCMRevisionStates point to the same state of the same repository / the same commit.

      public static final PollingResult.Change INSIGNIFICANT
      There are some changes between states, but those changes are not significant enough to consider a new build. For example, some SCMs allow certain commits to be marked as excluded, and this is how you can do it.

      public static final PollingResult.Change SIGNIFICANT
      There are changes between states that warrant a new build. Jenkins will eventually schedule a new build for this change, subject to other considerations such as the quiet period.

      public static final PollingResult.Change INCOMPARABLE
      The state as of baseline is so different from the current state that they are incomparable (for example, the workspace and the remote repository points to two unrelated repositories because the configuration has changed.) This forces Jenkins to schedule a build right away.

      This is primarily useful in SCM implementations that require a workspace to be able to perform a polling. SCMs that can always compare remote revisions regardless of the local state should do so, and never return this constant, to let Jenkins maintain the quiet period behavior all the time.

      This constant is not to be confused with the errors encountered during polling, which should result in an exception and eventual retry by Jenkins.

  • Method Details

    • values

      public static PollingResult.Change[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PollingResult.Change 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null