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 PlanExecutionConfigbuild()PlanExecutionConfig.PlanExecutionTypegetPlanExecutionType()type of resumed plan execution@NotNull PlanResultKeygetResultToRerun()PlanResultKeyof build to start againSet<ImmutableChainStage>getStagesToExecute()@NotNull StageIdentifiergetStartStage()Stage where plan execution should be resumedbooleanisBranchMergePushOverride()If branch merging is enabled, if we override the pushbooleanisContinueFromFailed()Executing manual stage of unsuccessful build.booleanisGoingToStopAtManualStage()true if the first stage not scheduled for execution was manualbooleanisScheduledForExecution(String stageName)booleanisStageToStopFinal()booleanisVerboseLoggingOn()If build runs in verbose modevoidsetBranchMergePushOverride(boolean branchMergePushOverride)PlanExecutionConfigsetChain(ImmutableChain chain)PlanExecutionConfigsetChainResultSummary(ChainResultsSummary chainResultsSummary)PlanExecutionConfigsetExecuteAllStages()PlanExecutionConfigsetLatestManualStageForAutomaticExecution(@Nullable String latestManualStageForAutomaticExecution)PlanExecutionConfigsetVerboseLogging(boolean verboseMode)
-
-
-
Constructor Detail
-
PlanExecutionConfigImpl
public PlanExecutionConfigImpl(PlanExecutionConfig.PlanExecutionType planExecutionType)
-
-
Method Detail
-
setChain
public PlanExecutionConfig setChain(ImmutableChain chain)
- Specified by:
setChainin interfacePlanExecutionConfig
-
setChainResultSummary
public PlanExecutionConfig setChainResultSummary(ChainResultsSummary chainResultsSummary)
- Specified by:
setChainResultSummaryin interfacePlanExecutionConfig
-
setLatestManualStageForAutomaticExecution
public PlanExecutionConfig setLatestManualStageForAutomaticExecution(@Nullable @Nullable String latestManualStageForAutomaticExecution)
- Specified by:
setLatestManualStageForAutomaticExecutionin interfacePlanExecutionConfig
-
setExecuteAllStages
public PlanExecutionConfig setExecuteAllStages()
- Specified by:
setExecuteAllStagesin interfacePlanExecutionConfig
-
getStartStage
@NotNull public @NotNull StageIdentifier getStartStage()
Description copied from interface:PlanExecutionConfigStage where plan execution should be resumed- Specified by:
getStartStagein interfacePlanExecutionConfig- Returns:
- null iff restarting chain that failed after all the Jobs run successfully
-
getPlanExecutionType
public PlanExecutionConfig.PlanExecutionType getPlanExecutionType()
Description copied from interface:PlanExecutionConfigtype of resumed plan execution- Specified by:
getPlanExecutionTypein interfacePlanExecutionConfig- Returns:
-
isScheduledForExecution
public boolean isScheduledForExecution(String stageName)
- Specified by:
isScheduledForExecutionin interfacePlanExecutionConfig
-
getResultToRerun
@NotNull public @NotNull PlanResultKey getResultToRerun()
Description copied from interface:PlanExecutionConfigPlanResultKeyof build to start again- Specified by:
getResultToRerunin interfacePlanExecutionConfig- Returns:
-
build
@NotNull public @NotNull PlanExecutionConfig build()
- Specified by:
buildin interfacePlanExecutionConfig
-
getStagesToExecute
public Set<ImmutableChainStage> getStagesToExecute()
- Specified by:
getStagesToExecutein interfacePlanExecutionConfig
-
isGoingToStopAtManualStage
public boolean isGoingToStopAtManualStage()
Description copied from interface:PlanExecutionConfigtrue if the first stage not scheduled for execution was manual- Specified by:
isGoingToStopAtManualStagein interfacePlanExecutionConfig- Returns:
-
isStageToStopFinal
public boolean isStageToStopFinal()
- Specified by:
isStageToStopFinalin interfacePlanExecutionConfig
-
isBranchMergePushOverride
public boolean isBranchMergePushOverride()
Description copied from interface:PlanExecutionConfigIf branch merging is enabled, if we override the push- Specified by:
isBranchMergePushOverridein interfacePlanExecutionConfig- Returns:
-
isContinueFromFailed
public boolean isContinueFromFailed()
Description copied from interface:PlanExecutionConfigExecuting manual stage of unsuccessful build. Only possible when manual stage is also a final stage.- Specified by:
isContinueFromFailedin interfacePlanExecutionConfig- Returns:
-
setBranchMergePushOverride
public void setBranchMergePushOverride(boolean branchMergePushOverride)
- Specified by:
setBranchMergePushOverridein interfacePlanExecutionConfig
-
isVerboseLoggingOn
public boolean isVerboseLoggingOn()
Description copied from interface:PlanExecutionConfigIf build runs in verbose mode- Specified by:
isVerboseLoggingOnin interfacePlanExecutionConfig
-
setVerboseLogging
public PlanExecutionConfig setVerboseLogging(boolean verboseMode)
- Specified by:
setVerboseLoggingin interfacePlanExecutionConfig
-
-