public final class PollingResult extends Object implements Serializable
This object is marked serializable just to be remoting friendly — Jenkins by itself doesn't persist this object.
Modifier and Type | Class and Description |
---|---|
static class |
PollingResult.Change
Degree of changes between the previous state and this state.
|
Modifier and Type | Field and Description |
---|---|
SCMRevisionState |
baseline
Baseline of the comparison.
|
static PollingResult |
BUILD_NOW
Constant that uses
PollingResult.Change.INCOMPARABLE which forces an immediate build. |
PollingResult.Change |
change
Degree of the change between baseline and remote.
|
static PollingResult |
NO_CHANGES
Constant to indicate no changes in the remote repository.
|
SCMRevisionState |
remote
Current state of the remote repository.
|
static PollingResult |
SIGNIFICANT |
Constructor and Description |
---|
PollingResult(PollingResult.Change change) |
PollingResult(SCMRevisionState baseline,
SCMRevisionState remote,
PollingResult.Change change) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasChanges() |
@CheckForNull public final SCMRevisionState baseline
@CheckForNull public final SCMRevisionState remote
@Nonnull public final PollingResult.Change change
The fact that this field is independent from baseline
and remote
are
used to (1) allow the incomparable state which forces
the immediate rebuild, and (2) allow SCM to ignore some changes in the repository to implement
exclusion feature.
public static final PollingResult NO_CHANGES
public static final PollingResult SIGNIFICANT
public static final PollingResult BUILD_NOW
PollingResult.Change.INCOMPARABLE
which forces an immediate build.public PollingResult(@CheckForNull SCMRevisionState baseline, @CheckForNull SCMRevisionState remote, @Nonnull PollingResult.Change change)
public PollingResult(@Nonnull PollingResult.Change change)
Copyright © 2004–2019. All rights reserved.