Package com.atlassian.bamboo.v2.trigger
Class ManualBuildDetectionAction
- java.lang.Object
-
- com.atlassian.bamboo.v2.trigger.ManualBuildDetectionAction
-
- All Implemented Interfaces:
BuildDetectionAction,DelayedChangeDetectionAction,UnconditionalBuildDetectionAction,UserInitiatedBuildDetectionAction
public class ManualBuildDetectionAction extends Object implements UserInitiatedBuildDetectionAction, DelayedChangeDetectionAction
Implementation ofBuildDetectionActionfor Manual Builds
-
-
Field Summary
Fields Modifier and Type Field Description static StringCUSTOM_REVISION_PARAMETER
-
Constructor Summary
Constructors Constructor Description ManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, @Nullable PlanExecutionConfig planExecutionConfig, Map<String,String> params, Map<String,String> variables, BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, VariableDefinitionManager variableDefinitionManager, BuildContextBuilderFactory buildContextBuilderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BuildDetectionResultgenerateResultWithoutChanges()Creates a result with a new number without doing change detection@Nullable PlanExecutionConfiggetPlanExecutionConfig()Controls how plan execution would be resumed If null, normal plan execution would be performed (new build starting on first stage)@Nullable BuildChangesperformDelayedChangeDetection(BuildContext buildContext, PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions)Performs a change detection
-
-
-
Field Detail
-
CUSTOM_REVISION_PARAMETER
public static final String CUSTOM_REVISION_PARAMETER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ManualBuildDetectionAction
public ManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, @Nullable @Nullable PlanExecutionConfig planExecutionConfig, Map<String,String> params, Map<String,String> variables, BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, VariableDefinitionManager variableDefinitionManager, BuildContextBuilderFactory buildContextBuilderFactory)
-
-
Method Detail
-
generateResultWithoutChanges
@NotNull public @NotNull BuildDetectionResult generateResultWithoutChanges()
Description copied from interface:UnconditionalBuildDetectionActionCreates a result with a new number without doing change detection- Specified by:
generateResultWithoutChangesin interfaceUnconditionalBuildDetectionAction- Returns:
-
performDelayedChangeDetection
@Nullable public @Nullable BuildChanges performDelayedChangeDetection(BuildContext buildContext, @NotNull PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions) throws RepositoryException
Description copied from interface:UnconditionalBuildDetectionActionPerforms a change detection- Specified by:
performDelayedChangeDetectionin interfaceUnconditionalBuildDetectionActionreleaseLocksActions- actions used for releasing repositories caches locks- Returns:
- Null if and error has occurred.
- Throws:
RepositoryException
-
getPlanExecutionConfig
@Nullable public @Nullable PlanExecutionConfig getPlanExecutionConfig()
Description copied from interface:UserInitiatedBuildDetectionActionControls how plan execution would be resumed If null, normal plan execution would be performed (new build starting on first stage)- Specified by:
getPlanExecutionConfigin interfaceUserInitiatedBuildDetectionAction- Returns:
- planExecutionConfig
-
-