public abstract class SCMPollListener extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
SCMPollListener() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<SCMPollListener> |
all()
Returns all the registered
SCMPollListeners. |
static void |
fireBeforePolling(AbstractProject<?,?> project,
TaskListener listener) |
static void |
firePollingFailed(AbstractProject<?,?> project,
TaskListener listener,
Throwable exception) |
static void |
firePollingSuccess(AbstractProject<?,?> project,
TaskListener listener,
PollingResult result) |
void |
onBeforePolling(AbstractProject<?,?> project,
TaskListener listener)
Called before the polling execution.
|
void |
onPollingFailed(AbstractProject<?,?> project,
TaskListener listener,
Throwable exception)
Called when the polling concluded with an error.
|
void |
onPollingSuccess(AbstractProject<?,?> project,
TaskListener listener,
PollingResult result)
Called when the polling successfully concluded.
|
public void onBeforePolling(AbstractProject<?,?> project, TaskListener listener)
project - Project that's about to run polling.listener - Connected to the polling log.public void onPollingSuccess(AbstractProject<?,?> project, TaskListener listener, PollingResult result)
result - The result of the polling.public void onPollingFailed(AbstractProject<?,?> project, TaskListener listener, Throwable exception)
exception - The problem reported. This can include InterruptedException (that corresponds to the user cancelling it),
some anticipated problems like IOException, or bug in the code (RuntimeException)public static void fireBeforePolling(AbstractProject<?,?> project, TaskListener listener)
public static void firePollingSuccess(AbstractProject<?,?> project, TaskListener listener, PollingResult result)
public static void firePollingFailed(AbstractProject<?,?> project, TaskListener listener, Throwable exception)
public static ExtensionList<SCMPollListener> all()
SCMPollListeners.Copyright © 2019. All rights reserved.