Package com.atlassian.bamboo.plan
Class PlanExecutionConfigImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.PlanExecutionConfigImpl
-
- All Implemented Interfaces:
PlanExecutionConfig
public class PlanExecutionConfigImpl extends Object implements PlanExecutionConfig
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.plan.PlanExecutionConfig
PlanExecutionConfig.PlanExecutionType
-
-
Constructor Summary
Constructors Constructor Description PlanExecutionConfigImpl(PlanExecutionConfig.PlanExecutionType planExecutionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PlanExecutionConfig
build()
PlanExecutionConfig.PlanExecutionType
getPlanExecutionType()
type of resumed plan execution@NotNull PlanResultKey
getResultToRerun()
PlanResultKey
of build to start againSet<ImmutableChainStage>
getStagesToExecute()
@NotNull StageIdentifier
getStartStage()
Stage where plan execution should be resumedboolean
isBranchMergePushOverride()
If branch merging is enabled, if we override the pushboolean
isContinueFromFailed()
Executing manual stage of unsuccessful build.boolean
isGoingToStopAtManualStage()
true if the first stage not scheduled for execution was manualboolean
isScheduledForExecution(String stageName)
boolean
isStageToStopFinal()
boolean
isVerboseLoggingOn()
If build runs in verbose modevoid
setBranchMergePushOverride(boolean branchMergePushOverride)
PlanExecutionConfig
setChain(ImmutableChain chain)
PlanExecutionConfig
setChainResultSummary(ChainResultsSummary chainResultsSummary)
PlanExecutionConfig
setExecuteAllStages()
PlanExecutionConfig
setLatestManualStageForAutomaticExecution(@Nullable String latestManualStageForAutomaticExecution)
PlanExecutionConfig
setVerboseLogging(boolean verboseMode)
-
-
-
Constructor Detail
-
PlanExecutionConfigImpl
public PlanExecutionConfigImpl(PlanExecutionConfig.PlanExecutionType planExecutionType)
-
-
Method Detail
-
setChain
public PlanExecutionConfig setChain(ImmutableChain chain)
- Specified by:
setChain
in interfacePlanExecutionConfig
-
setChainResultSummary
public PlanExecutionConfig setChainResultSummary(ChainResultsSummary chainResultsSummary)
- Specified by:
setChainResultSummary
in interfacePlanExecutionConfig
-
setLatestManualStageForAutomaticExecution
public PlanExecutionConfig setLatestManualStageForAutomaticExecution(@Nullable @Nullable String latestManualStageForAutomaticExecution)
- Specified by:
setLatestManualStageForAutomaticExecution
in interfacePlanExecutionConfig
-
setExecuteAllStages
public PlanExecutionConfig setExecuteAllStages()
- Specified by:
setExecuteAllStages
in interfacePlanExecutionConfig
-
getStartStage
@NotNull public @NotNull StageIdentifier getStartStage()
Description copied from interface:PlanExecutionConfig
Stage where plan execution should be resumed- Specified by:
getStartStage
in interfacePlanExecutionConfig
- Returns:
- null iff restarting chain that failed after all the Jobs run successfully
-
getPlanExecutionType
public PlanExecutionConfig.PlanExecutionType getPlanExecutionType()
Description copied from interface:PlanExecutionConfig
type of resumed plan execution- Specified by:
getPlanExecutionType
in interfacePlanExecutionConfig
- Returns:
-
isScheduledForExecution
public boolean isScheduledForExecution(String stageName)
- Specified by:
isScheduledForExecution
in interfacePlanExecutionConfig
-
getResultToRerun
@NotNull public @NotNull PlanResultKey getResultToRerun()
Description copied from interface:PlanExecutionConfig
PlanResultKey
of build to start again- Specified by:
getResultToRerun
in interfacePlanExecutionConfig
- Returns:
-
build
@NotNull public @NotNull PlanExecutionConfig build()
- Specified by:
build
in interfacePlanExecutionConfig
-
getStagesToExecute
public Set<ImmutableChainStage> getStagesToExecute()
- Specified by:
getStagesToExecute
in interfacePlanExecutionConfig
-
isGoingToStopAtManualStage
public boolean isGoingToStopAtManualStage()
Description copied from interface:PlanExecutionConfig
true if the first stage not scheduled for execution was manual- Specified by:
isGoingToStopAtManualStage
in interfacePlanExecutionConfig
- Returns:
-
isStageToStopFinal
public boolean isStageToStopFinal()
- Specified by:
isStageToStopFinal
in interfacePlanExecutionConfig
-
isBranchMergePushOverride
public boolean isBranchMergePushOverride()
Description copied from interface:PlanExecutionConfig
If branch merging is enabled, if we override the push- Specified by:
isBranchMergePushOverride
in interfacePlanExecutionConfig
- Returns:
-
isContinueFromFailed
public boolean isContinueFromFailed()
Description copied from interface:PlanExecutionConfig
Executing manual stage of unsuccessful build. Only possible when manual stage is also a final stage.- Specified by:
isContinueFromFailed
in interfacePlanExecutionConfig
- Returns:
-
setBranchMergePushOverride
public void setBranchMergePushOverride(boolean branchMergePushOverride)
- Specified by:
setBranchMergePushOverride
in interfacePlanExecutionConfig
-
isVerboseLoggingOn
public boolean isVerboseLoggingOn()
Description copied from interface:PlanExecutionConfig
If build runs in verbose mode- Specified by:
isVerboseLoggingOn
in interfacePlanExecutionConfig
-
setVerboseLogging
public PlanExecutionConfig setVerboseLogging(boolean verboseMode)
- Specified by:
setVerboseLogging
in interfacePlanExecutionConfig
-
-