@Extension public class BuildSyncRunListener extends RunListener<Run>
Run and updates the PipelineActivity resourceExtensionPoint.LegacyInstancesAreScopedToHudsonLISTENERS, targetType| Constructor and Description |
|---|
BuildSyncRunListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTimerStarted() |
static String |
createBuildLogsUrl(String jenkinsURL,
String pipeline,
String buildNumberText) |
static String |
createBuildUrl(String jenkinsURL,
String pipeline,
String buildNumberText) |
protected String |
getStageName(com.cloudbees.workflow.rest.external.StageNodeExt stage) |
protected String |
jenkinsURL(io.fabric8.kubernetes.client.KubernetesClient kubeClient,
String namespace) |
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(Run run,
TaskListener listener) |
void |
onDeleted(Run run) |
void |
onFinalized(Run run) |
void |
onStarted(Run run,
TaskListener listener) |
protected void |
pollLoop() |
protected void |
pollRun(Run run) |
protected boolean |
shouldPollRun(Run run)
Returns true if we should poll the status of this run
|
protected String |
toYamlOrRandom(Object data) |
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onInitialize, register, setUpEnvironment, unregisterpublic static String joinPaths(String... strings)
strings - the sequence of strings to joinpublic static String createBuildLogsUrl(String jenkinsURL, String pipeline, String buildNumberText)
public static String createBuildUrl(String jenkinsURL, String pipeline, String buildNumberText)
public void onStarted(Run run, TaskListener listener)
onStarted in class RunListener<Run>protected void checkTimerStarted()
public void onCompleted(Run run, @Nonnull TaskListener listener)
onCompleted in class RunListener<Run>public void onDeleted(Run run)
onDeleted in class RunListener<Run>public void onFinalized(Run run)
onFinalized in class RunListener<Run>protected void pollLoop()
protected void pollRun(Run run)
protected String jenkinsURL(io.fabric8.kubernetes.client.KubernetesClient kubeClient, String namespace)
protected String getStageName(com.cloudbees.workflow.rest.external.StageNodeExt stage)
protected boolean shouldPollRun(Run run)
run - the Run to test againstCopyright © 2016–2019. All rights reserved.