Package com.atlassian.bamboo.chains
Interface ChainPluginSupport
@Internal
public interface ChainPluginSupport
Support methods for
ChainExecutionManager
BambooPluginModule
executions-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildCompleted
(@NotNull BuildExecution buildExecution) Executes the enabledPostJobAction
s forBuildExecution
void
buildStarted
(@NotNull StageExecution stageExecution, @NotNull BuildContext buildContext) Executes the enabledPreJobAction
s forBuildContext
void
chainCompleted
(@NotNull ChainExecution chainExecution, @NotNull BuildContext buildContext) Executes the enabledPostChainAction
s forChainExecution
void
chainStarted
(@NotNull ChainExecution chainExecution, @NotNull BuildContext buildContext) Executes the enabledPreChainAction
s forChainExecution
void
failedStageRestarted
(@NotNull StageExecution stageExecution, @NotNull BuildContext buildContext) Executes the enabledRestartFailedStageAction
s forStageExecution
void
manualStageResumed
(@NotNull StageExecution stageExecution, @NotNull BuildContext buildContext) Executes the enabledResumeManualStageAction
s forStageExecution
boolean
shouldStopExecution
(@NotNull ImmutableChain chain, @NotNull Map<String, String> triggerConditionsConfiguration) Determine from plugins whether the chain should continue executing or not.void
stageCompleted
(@NotNull StageExecution stageExecution, long stageResultId, @NotNull BuildContext buildContext) Executes the enabledPostStageAction
s forStageExecution
void
stageStarted
(@NotNull StageExecution stageExecution, @NotNull BuildContext buildContext) Executes the enabledPreStageAction
s forStageExecution
void
stoppedOnManualStage
(@NotNull StageExecution stageExecution, long stageResultId, @NotNull BuildContext buildContext) Executes the enabledStopOnManualStageAction
s forStageExecution
-
Method Details
-
chainStarted
void chainStarted(@NotNull @NotNull ChainExecution chainExecution, @NotNull @NotNull BuildContext buildContext) Executes the enabledPreChainAction
s forChainExecution
- Parameters:
chainExecution
-buildContext
-
-
chainCompleted
void chainCompleted(@NotNull @NotNull ChainExecution chainExecution, @NotNull @NotNull BuildContext buildContext) Executes the enabledPostChainAction
s forChainExecution
- Parameters:
chainExecution
-buildContext
-
-
stageStarted
void stageStarted(@NotNull @NotNull StageExecution stageExecution, @NotNull @NotNull BuildContext buildContext) Executes the enabledPreStageAction
s forStageExecution
- Parameters:
stageExecution
-buildContext
-
-
stageCompleted
void stageCompleted(@NotNull @NotNull StageExecution stageExecution, long stageResultId, @NotNull @NotNull BuildContext buildContext) Executes the enabledPostStageAction
s forStageExecution
- Parameters:
stageExecution
-stageResultId
-buildContext
-
-
manualStageResumed
void manualStageResumed(@NotNull @NotNull StageExecution stageExecution, @NotNull @NotNull BuildContext buildContext) Executes the enabledResumeManualStageAction
s forStageExecution
- Parameters:
stageExecution
-buildContext
-
-
failedStageRestarted
void failedStageRestarted(@NotNull @NotNull StageExecution stageExecution, @NotNull @NotNull BuildContext buildContext) Executes the enabledRestartFailedStageAction
s forStageExecution
- Parameters:
stageExecution
-buildContext
-
-
stoppedOnManualStage
void stoppedOnManualStage(@NotNull @NotNull StageExecution stageExecution, long stageResultId, @NotNull @NotNull BuildContext buildContext) Executes the enabledStopOnManualStageAction
s forStageExecution
- Parameters:
stageExecution
-stageResultId
-buildContext
-
-
buildStarted
void buildStarted(@NotNull @NotNull StageExecution stageExecution, @NotNull @NotNull BuildContext buildContext) Executes the enabledPreJobAction
s forBuildContext
- Parameters:
stageExecution
-buildContext
-
-
buildCompleted
Executes the enabledPostJobAction
s forBuildExecution
- Parameters:
buildExecution
-
-
shouldStopExecution
boolean shouldStopExecution(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String, String> triggerConditionsConfiguration) Determine from plugins whether the chain should continue executing or not.- Parameters:
chain
-triggerConditionsConfiguration
-- Returns:
- true if execution should be stopped, false if it should continue.
-