Package com.atlassian.bamboo.chains
Interface ChainExecution
-
- All Superinterfaces:
ExecutionStatus
@PublicApi public interface ChainExecution extends ExecutionStatus
Represents an executingChain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetConfigObject(String key, Class<T> aClass)Get configuration object produced byPlanConfigurationUiPlugin@Nullable StageExecutiongetCurrentStage()The currentStageExecution@NotNull ExecutionContextgetExecutionContext()Stores contextual data for the currentChainExecution@NotNull StringgetName()Gets the name of the executing Chain@NotNull PlanResultKeygetPlanResultKey()Get the result key@NotNull List<StageExecution>getStages()Get Stages for this Chain@NotNull TriggerReasongetTriggerReason()Get theTriggerReasonfor the currentChainExecutionbooleanisCompleted()Returns true if the chain has finished executingbooleanisFailed()Returns true if the chain execution has failedbooleanisStopping()Returns true if the chain is undergoing a 'stop' operationbooleanisStopRequested()Returns true if theChainhas been requested to stop executionbooleanisSuccessful()Returns true if the chain has finished executing successfully-
Methods inherited from interface com.atlassian.bamboo.plan.ExecutionStatus
getAverageDuration, getBuildChanges, getBuildIdentifier, getElapsedTime, getProgressBar, getQueueTime, getStartTime
-
-
-
-
Method Detail
-
getName
@NotNull @NotNull String getName()
Gets the name of the executing Chain- Returns:
- name
-
getPlanResultKey
@NotNull @NotNull PlanResultKey getPlanResultKey()
Get the result key- Returns:
- resultKey
-
getStages
@NotNull @NotNull List<StageExecution> getStages()
Get Stages for this Chain- Returns:
- stages
-
isCompleted
boolean isCompleted()
Returns true if the chain has finished executing- Returns:
- false
-
isSuccessful
boolean isSuccessful()
Returns true if the chain has finished executing successfully- Returns:
- success
-
isFailed
boolean isFailed()
Returns true if the chain execution has failed- Returns:
- failure
-
isStopping
boolean isStopping()
Returns true if the chain is undergoing a 'stop' operation- Returns:
- stopping
-
isStopRequested
boolean isStopRequested()
Returns true if theChainhas been requested to stop execution- Returns:
- stopRequested
-
getExecutionContext
@NotNull @NotNull ExecutionContext getExecutionContext()
Stores contextual data for the currentChainExecution- Returns:
- executionContext
-
getCurrentStage
@Nullable @Nullable StageExecution getCurrentStage()
The currentStageExecution- Returns:
- stageExecution
-
getTriggerReason
@NotNull @NotNull TriggerReason getTriggerReason()
Get theTriggerReasonfor the currentChainExecution- Specified by:
getTriggerReasonin interfaceExecutionStatus- Returns:
- triggerReason
-
getConfigObject
@Nullable <T> T getConfigObject(String key, Class<T> aClass)
Get configuration object produced byPlanConfigurationUiPlugin- Parameters:
key-aClass-- Returns:
- configObject
- Since:
- 3.0
-
-