@Internal
public interface ChainState
Chain
stateModifier and Type | Method and Description |
---|---|
void |
finishStopping()
Marks the
Chain as finished stopping. |
long |
getAverageDuration()
Average duration of the
Chain in milliseconds |
@NotNull BuildContext |
getBuildContext()
The
BuildContext of the currently executing chain |
@Nullable com.atlassian.bamboo.chains.ChainBuildState |
getChainBuildState(@NotNull PlanResultKey planResultKey)
Gets the build state for the given buildResultKey
|
@NotNull Collection<com.atlassian.bamboo.chains.ChainBuildState> |
getChainBuildStates()
Gets all the
ChainBuildState s for the current ChainState |
@Nullable StageState |
getCurrentStage()
Gets the currently executing
StageState |
int |
getCurrentStageNumber()
Returns the cardinal number of currently executed stage.
|
long |
getElapsedTime()
Time taken to execute the
Chain in milliseconds |
@NotNull ExecutionContext |
getExecutionContext()
Stores contextual data for the current
ChainState |
@Nullable MergeResultSummary |
getMergeResult() |
@Nullable VcsWorkingCopy |
getMergeWorkingCopy() |
@NotNull String |
getName()
Get Chain name
|
StageState |
getNextStage()
Get the next stage
|
PlanExecutionConfig.PlanExecutionType |
getPlanExecutionType()
How this chain was executed, i.e.
|
@NotNull PlanResultKey |
getPlanResultKey()
PlanResultKey for the the Chain execution |
@Nullable StageState |
getPreviousStage()
Gets the currently executing
StageState |
@NotNull Date |
getQueueTime()
The queue
Date |
@NotNull List<StageState> |
getStages()
Get all stages for Chain
|
@Nullable Date |
getStartDate()
The start
Date |
boolean |
isCompleted()
Checks if the
Chain has been completed |
boolean |
isContinuable()
true if user will be able to manually continue the build after this execution ends
|
boolean |
isFailed()
Checks if the
Chain has failed |
boolean |
isGoingToStopAtManualStage()
true if the successfully finished chain is expected to stop at the (proceeding) manual stage
|
boolean |
isStopping()
Checks if the
Chain is stopping |
boolean |
isStopRequested()
Checks if the
Chain has been requested to stop executing |
boolean |
isSuccessful()
Checks if the
Chain has successfully completed |
void |
markAsStopping()
Marks the
Chain as stopping |
StageState |
proceedToNextStage(@NotNull com.google.common.collect.Multimap<String,Artifact> publishedChainArtifacts,
boolean lastExecutedStageSuccessful)
Replaces the current stage with the next stage in the queue and changes the reference to the current stage to the previous.
|
void |
setMergeResult(@NotNull MergeResultSummary mergeResult) |
void |
setMergeWorkingCopy(VcsWorkingCopy workingCopy) |
boolean |
setStartDate(@NotNull Date date)
The first call sets the start
Date . |
void |
updateVariableContextAndMergeResult(@NotNull VariableContext variableContext,
@Nullable MergeResultContext mergeResultSummary) |
@NotNull @NotNull String getName()
@NotNull @NotNull PlanResultKey getPlanResultKey()
PlanResultKey
for the the Chain
execution@NotNull @NotNull List<StageState> getStages()
@Nullable @Nullable com.atlassian.bamboo.chains.ChainBuildState getChainBuildState(@NotNull @NotNull PlanResultKey planResultKey)
planResultKey
- @NotNull @NotNull Collection<com.atlassian.bamboo.chains.ChainBuildState> getChainBuildStates()
ChainBuildState
s for the current ChainState
@Nullable @Nullable StageState getPreviousStage()
StageState
@Nullable @Nullable StageState getCurrentStage()
StageState
int getCurrentStageNumber()
StageState getNextStage()
StageState proceedToNextStage(@NotNull @NotNull com.google.common.collect.Multimap<String,Artifact> publishedChainArtifacts, boolean lastExecutedStageSuccessful)
boolean isCompleted()
Chain
has been completedboolean isSuccessful()
Chain
has successfully completedboolean isFailed()
Chain
has failedboolean isStopping()
Chain
is stoppingboolean isStopRequested()
Chain
has been requested to stop executingvoid markAsStopping()
Chain
as stoppingvoid finishStopping()
Chain
as finished stopping.@NotNull @NotNull BuildContext getBuildContext()
BuildContext
of the currently executing chain@NotNull @NotNull ExecutionContext getExecutionContext()
ChainState
long getAverageDuration()
Chain
in millisecondsboolean setStartDate(@NotNull @NotNull Date date)
Date
. Subsequent calls have no effect.date
- long getElapsedTime()
Chain
in milliseconds@NotNull PlanExecutionConfig.PlanExecutionType getPlanExecutionType()
boolean isGoingToStopAtManualStage()
boolean isContinuable()
@Nullable @Nullable MergeResultSummary getMergeResult()
void setMergeResult(@NotNull @NotNull MergeResultSummary mergeResult)
void updateVariableContextAndMergeResult(@NotNull @NotNull VariableContext variableContext, @Nullable @Nullable MergeResultContext mergeResultSummary)
@Nullable @Nullable VcsWorkingCopy getMergeWorkingCopy()
void setMergeWorkingCopy(VcsWorkingCopy workingCopy)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.