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 of
BuildDetectionAction
for Manual Builds-
Field Summary
-
Constructor Summary
ConstructorDescriptionManualBuildDetectionAction
(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
Modifier and TypeMethodDescription@NotNull BuildDetectionResult
Creates a result with a new number without doing change detection@Nullable PlanExecutionConfig
Controls how plan execution would be resumed If null, normal plan execution would be performed (new build starting on first stage)@Nullable BuildChanges
performDelayedChangeDetection
(BuildContext buildContext, PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions) Performs a change detection
-
Field Details
-
CUSTOM_REVISION_PARAMETER
- See Also:
-
-
Constructor Details
-
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 Details
-
generateResultWithoutChanges
Description copied from interface:UnconditionalBuildDetectionAction
Creates a result with a new number without doing change detection- Specified by:
generateResultWithoutChanges
in interfaceUnconditionalBuildDetectionAction
- Returns:
-
performDelayedChangeDetection
@Nullable public @Nullable BuildChanges performDelayedChangeDetection(BuildContext buildContext, @NotNull PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions) throws RepositoryException Description copied from interface:UnconditionalBuildDetectionAction
Performs a change detection- Specified by:
performDelayedChangeDetection
in interfaceUnconditionalBuildDetectionAction
releaseLocksActions
- actions used for releasing repositories caches locks- Returns:
- Null if and error has occurred.
- Throws:
RepositoryException
-
getPlanExecutionConfig
Description copied from interface:UserInitiatedBuildDetectionAction
Controls how plan execution would be resumed If null, normal plan execution would be performed (new build starting on first stage)- Specified by:
getPlanExecutionConfig
in interfaceUserInitiatedBuildDetectionAction
- Returns:
- planExecutionConfig
-