@PublicApi public interface ChainExecution extends ExecutionStatus
Chain
Modifier and Type | Method and Description |
---|---|
<T> T |
getConfigObject(String key,
Class<T> aClass)
Get configuration object produced by
BuildConfigurationUIPlugin |
StageExecution |
getCurrentStage()
The current
StageExecution |
ExecutionContext |
getExecutionContext()
Stores contextual data for the current
ChainExecution |
String |
getName()
Gets the name of the executing Chain
|
PlanResultKey |
getPlanResultKey()
Get the result key
|
List<StageExecution> |
getStages()
Get Stages for this Chain
|
TriggerReason |
getTriggerReason()
Get the
TriggerReason for the current ChainExecution |
boolean |
isCompleted()
Returns true if the chain has finished executing
|
boolean |
isFailed()
Returns true if the chain execution has failed
|
boolean |
isStopping()
Returns true if the chain is undergoing a 'stop' operation
|
boolean |
isStopRequested()
Returns true if the
Chain has been requested to stop execution |
boolean |
isSuccessful()
Returns true if the chain has finished executing successfully
|
getAverageDuration, getBuildChanges, getBuildIdentifier, getElapsedTime, getProgressBar, getQueueTime, getStartTime
@NotNull String getName()
@NotNull PlanResultKey getPlanResultKey()
@NotNull List<StageExecution> getStages()
boolean isCompleted()
boolean isSuccessful()
boolean isFailed()
boolean isStopping()
boolean isStopRequested()
Chain
has been requested to stop execution@NotNull ExecutionContext getExecutionContext()
ChainExecution
@Nullable StageExecution getCurrentStage()
StageExecution
@NotNull TriggerReason getTriggerReason()
TriggerReason
for the current ChainExecution
getTriggerReason
in interface ExecutionStatus
@Nullable <T> T getConfigObject(String key, Class<T> aClass)
BuildConfigurationUIPlugin
key
- aClass
- Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.