@Extension
public class BuildSyncRunListener
extends hudson.model.listeners.RunListener<hudson.model.Run>
Run start and stop then ensure there's a suitable Build object in
OpenShift thats updated correctly with the current status, logsURL and metrics| Constructor and Description |
|---|
BuildSyncRunListener() |
BuildSyncRunListener(long pollPeriodMs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTimerStarted() |
static String |
joinPaths(String... strings)
Joins all the given strings, ignoring nulls so that they form a URL with / between the paths without a // if the
previous path ends with / and the next path starts with / unless a path item is blank
|
void |
onCompleted(hudson.model.Run run,
hudson.model.TaskListener listener) |
void |
onDeleted(hudson.model.Run run) |
void |
onFinalized(hudson.model.Run run) |
void |
onStarted(hudson.model.Run run,
hudson.model.TaskListener listener) |
protected void |
pollLoop() |
protected void |
pollRun(hudson.model.Run run) |
protected boolean |
shouldPollRun(hudson.model.Run run)
Returns true if we should poll the status of this run
|
public BuildSyncRunListener()
@DataBoundConstructor public BuildSyncRunListener(long pollPeriodMs)
public static String joinPaths(String... strings)
strings - the sequence of strings to joinpublic void onStarted(hudson.model.Run run,
hudson.model.TaskListener listener)
onStarted in class hudson.model.listeners.RunListener<hudson.model.Run>protected void checkTimerStarted()
public void onCompleted(hudson.model.Run run,
@Nonnull
hudson.model.TaskListener listener)
onCompleted in class hudson.model.listeners.RunListener<hudson.model.Run>public void onDeleted(hudson.model.Run run)
onDeleted in class hudson.model.listeners.RunListener<hudson.model.Run>public void onFinalized(hudson.model.Run run)
onFinalized in class hudson.model.listeners.RunListener<hudson.model.Run>protected void pollLoop()
protected void pollRun(hudson.model.Run run)
protected boolean shouldPollRun(hudson.model.Run run)
run - the Run to test againstCopyright © 2016 Red Hat. All rights reserved.