public class PipelineWaitingAction extends Object implements RunAction2, Serializable
Executions could be put into parallel blocks, so have to handle this. Also Jenkins could shut down while waiting.
A lot of this is modeled off of InputAction
Constructor and Description |
---|
PipelineWaitingAction() |
Modifier and Type | Method and Description |
---|---|
void |
add(PipelineStepStateExecution step)
Add the step to the list of executions, for later reloading.
|
String |
getDisplayName() |
PipelineStepStateExecution |
getDynamic(String id)
Used by the UI for iterating over the executions and displaying.
|
PipelineStepStateExecution |
getExecution(String id)
Returns the execution based on the id.
|
List<PipelineStepStateExecution> |
getExecutions()
Lists all the stored executions.
|
String |
getIconFileName() |
Run<?,?> |
getRun() |
String |
getUrlName() |
void |
onAttached(Run<?,?> run) |
void |
onLoad(Run<?,?> run) |
void |
remove(PipelineStepStateExecution step)
Remove the specified step from the list of known executions.
|
public String getIconFileName()
getIconFileName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getUrlName()
getUrlName
in interface Action
public Run<?,?> getRun()
public void onAttached(Run<?,?> run)
onAttached
in interface RunAction2
public void onLoad(Run<?,?> run)
onLoad
in interface RunAction2
public void add(@Nonnull PipelineStepStateExecution step) throws IOException, InterruptedException, TimeoutException
@CheckForNull public PipelineStepStateExecution getExecution(@Nonnull String id) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
@Nonnull public List<PipelineStepStateExecution> getExecutions() throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
public void remove(@Nonnull PipelineStepStateExecution step) throws IOException, InterruptedException, TimeoutException
public PipelineStepStateExecution getDynamic(String id) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
Copyright © 2020–2021 Adobe Inc. All rights reserved.