com.atlassian.bamboo.v2.trigger
Class ManualBuildDetectionAction

java.lang.Object
  extended by com.atlassian.bamboo.v2.trigger.ManualBuildDetectionAction
All Implemented Interfaces:
BuildDetectionAction, DelayedChangeDetectionAction, UserInitiatedBuildDetectionAction

public class ManualBuildDetectionAction
extends java.lang.Object
implements UserInitiatedBuildDetectionAction, DelayedChangeDetectionAction

Implementation of BuildDetectionAction for Manual Builds


Field Summary
static java.lang.String CUSTOM_REVISION_PARAMETER
           
 
Constructor Summary
ManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, PlanExecutionConfig planExecutionConfig, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables, BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, VariableDefinitionManager variableDefinitionManager)
           
 
Method Summary
 BuildDetectionResult generateResultWithoutChanges()
          Creates a result with a new number without doing change detection
 PlanExecutionConfig getPlanExecutionConfig()
          Controls how plan execution would be resumed If null, normal plan execution would be performed (new build starting on first stage)
 BuildChanges performDelayedChangeDetection(BuildContext buildContext)
          Performs a change detection
 BuildDetectionResult process()
          The action to be taken by build triggering (change detection) components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOM_REVISION_PARAMETER

public static final java.lang.String CUSTOM_REVISION_PARAMETER
See Also:
Constant Field Values
Constructor Detail

ManualBuildDetectionAction

public ManualBuildDetectionAction(ImmutableChain chain,
                                  com.atlassian.user.User user,
                                  PlanExecutionConfig planExecutionConfig,
                                  java.util.Map<java.lang.String,java.lang.String> params,
                                  java.util.Map<java.lang.String,java.lang.String> variables,
                                  BuildNumberGeneratorService buildNumberGenerator,
                                  ChangeDetectionManager changeDetectionManager,
                                  TriggerManager triggerManager,
                                  ErrorUpdateHandler errorUpdateHandler,
                                  VariableDefinitionManager variableDefinitionManager)
Method Detail

process

@NotNull
public BuildDetectionResult process()
Description copied from interface: BuildDetectionAction
The action to be taken by build triggering (change detection) components.

Specified by:
process in interface BuildDetectionAction
Returns:
buildDetectionResult

generateResultWithoutChanges

@NotNull
public BuildDetectionResult generateResultWithoutChanges()
Description copied from interface: DelayedChangeDetectionAction
Creates a result with a new number without doing change detection

Specified by:
generateResultWithoutChanges in interface DelayedChangeDetectionAction
Returns:

performDelayedChangeDetection

@Nullable
public BuildChanges performDelayedChangeDetection(BuildContext buildContext)
                                           throws RepositoryException
Description copied from interface: DelayedChangeDetectionAction
Performs a change detection

Specified by:
performDelayedChangeDetection in interface DelayedChangeDetectionAction
Returns:
Null if and error has occurred.
Throws:
RepositoryException

getPlanExecutionConfig

public PlanExecutionConfig 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 interface UserInitiatedBuildDetectionAction
Returns:
planExecutionConfig


Copyright © 2012 Atlassian. All Rights Reserved.