Package hudson.scm
Enum Class PollingResult.Change
- All Implemented Interfaces:
Serializable
,Comparable<PollingResult.Change>
,Constable
- Enclosing class:
- PollingResult
Degree of changes between the previous state and this state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe 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.There are some changes between states, but those changes are not significant enough to consider a new build.No change.There are changes between states that warrant a new build. -
Method Summary
Modifier and TypeMethodDescriptionstatic PollingResult.Change
Returns the enum constant of this class with the specified name.static PollingResult.Change[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No change. TwoSCMRevisionState
s point to the same state of the same repository / the same commit. -
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. -
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. -
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
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
-