public static enum PollingResult.Change extends Enum<PollingResult.Change>
Enum Constant and Description |
---|
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.
|
INSIGNIFICANT
There are some changes between states, but those changes are not significant enough to consider
a new build.
|
NONE
No change.
|
SIGNIFICANT
There are changes between states that warrant a new build.
|
Modifier and Type | Method and Description |
---|---|
static PollingResult.Change |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PollingResult.Change[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PollingResult.Change NONE
SCMRevisionState
s point to the same state of the same repository / the same commit.public static final PollingResult.Change INSIGNIFICANT
public static final PollingResult.Change SIGNIFICANT
public static final PollingResult.Change INCOMPARABLE
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.
public static PollingResult.Change[] values()
for (PollingResult.Change c : PollingResult.Change.values()) System.out.println(c);
public static PollingResult.Change valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2004–2021. All rights reserved.