Package com.atlassian.bamboo.chains
Interface ChainBuildState
-
@Internal public interface ChainBuildStateManages the State of the runningChain
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classChainBuildState.State
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddResultVariablesFromPreviousStages(Map<String,VariableDefinitionContext> resultVariables)Updates build context of the jobs in with result variables collected in previous stage(s).longgetAverageDuration()@NotNull BuildContextgetBuildContext()Gets the BuildContext for the Task@NotNull PlanResultKeygetPlanResultKey()PlanResultKeyfor the currentChain@NotNull StageStategetStageState()Returns theStageStatethat thisChainBuildStatebelongs toBuildStategetState()booleanisDispatched()Is the Task in the Dispatched statebooleanisFailed()Was the tasks execution a failurebooleanisFinalized()Is the Task in the Finalized statebooleanisSuccessful()Was the tasks execution successful or not?booleanisWaiting()Is the Task in the Waiting statevoidmarkAsDispatched()Sets the State toChainBuildState.State.DISPATCHEDvoidmarkAsFinalized(BuildState buildState)Sets the State toChainBuildState.State.FINALIZEDvoidsetPublishedChainArtifactsInfo(@NotNull com.google.common.collect.Multimap<String,Artifact> publishedChainArtifacts)Updates build context of the jobs with artifacts published in previous stage(s).
-
-
-
Method Detail
-
getPlanResultKey
@NotNull @NotNull PlanResultKey getPlanResultKey()
PlanResultKeyfor the currentChain- Returns:
- planResultKey
-
getStageState
@NotNull @NotNull StageState getStageState()
Returns theStageStatethat thisChainBuildStatebelongs to- Returns:
- stageState
-
markAsDispatched
void markAsDispatched()
Sets the State toChainBuildState.State.DISPATCHED
-
markAsFinalized
void markAsFinalized(BuildState buildState)
Sets the State toChainBuildState.State.FINALIZED- Parameters:
buildState-
-
getState
BuildState getState()
- Returns:
- the current BuildState for this Job.
-
isWaiting
boolean isWaiting()
Is the Task in the Waiting state- Returns:
-
isDispatched
boolean isDispatched()
Is the Task in the Dispatched state- Returns:
-
isFinalized
boolean isFinalized()
Is the Task in the Finalized state- Returns:
-
isSuccessful
boolean isSuccessful()
Was the tasks execution successful or not?- Returns:
- success
-
isFailed
boolean isFailed()
Was the tasks execution a failure- Returns:
- failure
-
getBuildContext
@NotNull @NotNull BuildContext getBuildContext()
Gets the BuildContext for the Task- Returns:
- buildContext
-
getAverageDuration
long getAverageDuration()
- Returns:
- averageDuration of the
Job
-
addResultVariablesFromPreviousStages
void addResultVariablesFromPreviousStages(Map<String,VariableDefinitionContext> resultVariables)
Updates build context of the jobs in with result variables collected in previous stage(s).- Parameters:
resultVariables-
-
-