com.atlassian.bamboo.build
Class BuildDetectionActionFactoryImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildDetectionActionFactoryImpl
All Implemented Interfaces:
BuildDetectionActionFactory

public class BuildDetectionActionFactoryImpl
extends Object
implements BuildDetectionActionFactory


Constructor Summary
BuildDetectionActionFactoryImpl(BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, VariableDefinitionManager variableDefinitionManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ResultsSummaryManager resultsSummaryManager, BranchIntegrationService branchIntegrationService, BuildContextBuilderFactory buildContextBuilderFactory, ResultsSummaryVariableAccessor resultsSummaryVariableAccessor)
           
 
Method Summary
 BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(ImmutableChain chain, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, Map<String,String> params, Map<String,String> variables)
          Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason
 BuildDetectionAction createDependentBuildDetectionAction(ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext)
          Creates a new instance of BuildDetectionAction that is used to trigger dependent builds
 BuildDetectionAction createInitialBuildDetectionAction(ImmutableChain chain)
          Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, Map<String,String> params, Map<String,String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, PlanExecutionConfig planExecutionConfig, Map<String,String> params, Map<String,String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger planTrigger, Map<String,String> params, Map<String,String> variables)
           
 BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, com.atlassian.user.User user, TriggerReason triggerReason, PlanTrigger planTrigger, PlanExecutionConfig planExecutionConfig, Map<String,String> params, Map<String,String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted
 BuildDetectionAction createScheduledBuildDetectionAction(ImmutableChain chain, Map<String,String> triggerConditionsConfiguration)
          Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildDetectionActionFactoryImpl

public BuildDetectionActionFactoryImpl(BuildNumberGeneratorService buildNumberGenerator,
                                       ChangeDetectionManager changeDetectionManager,
                                       TriggerManager triggerManager,
                                       ErrorUpdateHandler errorUpdateHandler,
                                       BuildLoggerManager buildLoggerManager,
                                       VariableDefinitionManager variableDefinitionManager,
                                       PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
                                       ResultsSummaryManager resultsSummaryManager,
                                       BranchIntegrationService branchIntegrationService,
                                       BuildContextBuilderFactory buildContextBuilderFactory,
                                       ResultsSummaryVariableAccessor resultsSummaryVariableAccessor)
Method Detail

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @NotNull
                                                                     Map<String,String> params,
                                                                     @NotNull
                                                                     Map<String,String> variables)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan

Specified by:
createManualBuildDetectionAction in interface BuildDetectionActionFactory
params - - additional execution parameters set in code to parametrized build - not exposed to user
variables - - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI
Returns:
buildDetectionAction

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @Nullable
                                                                     PlanExecutionConfig planExecutionConfig,
                                                                     @NotNull
                                                                     Map<String,String> params,
                                                                     @NotNull
                                                                     Map<String,String> variables)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted

Specified by:
createManualBuildDetectionAction in interface BuildDetectionActionFactory
planExecutionConfig - - controls build continuation or restart
params - - additional execution parameters set in code to parametrized build - not exposed to user
variables - - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI
Returns:
buildDetectionAction

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @NotNull
                                                                     TriggerReason triggerReason,
                                                                     @Nullable
                                                                     PlanTrigger planTrigger,
                                                                     @Nullable
                                                                     PlanExecutionConfig planExecutionConfig,
                                                                     @NotNull
                                                                     Map<String,String> params,
                                                                     @NotNull
                                                                     Map<String,String> variables)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan when manual stage is meant to continue build or build is restarted

Specified by:
createManualBuildDetectionAction in interface BuildDetectionActionFactory
planExecutionConfig - - controls build continuation or restart
params - - additional execution parameters set in code to parametrized build - not exposed to user
variables - - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI
Returns:
buildDetectionAction

createManualBuildDetectionAction

@NotNull
public BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                                     ImmutableChain chain,
                                                                     @NotNull
                                                                     com.atlassian.user.User user,
                                                                     @Nullable
                                                                     PlanExecutionConfig planExecutionConfig,
                                                                     @Nullable
                                                                     TriggerReason triggerReason,
                                                                     @Nullable
                                                                     PlanTrigger planTrigger,
                                                                     @NotNull
                                                                     Map<String,String> params,
                                                                     @NotNull
                                                                     Map<String,String> variables)

createBuildDetectionActionForPluginBuildTrigger

@NotNull
public BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(@NotNull
                                                                                    ImmutableChain chain,
                                                                                    @Nullable
                                                                                    PlanExecutionConfig planExecutionConfig,
                                                                                    @NotNull
                                                                                    TriggerReason triggerReason,
                                                                                    @NotNull
                                                                                    PlanTrigger buildTrigger,
                                                                                    @NotNull
                                                                                    Map<String,String> params,
                                                                                    @NotNull
                                                                                    Map<String,String> variables)
Description copied from interface: BuildDetectionActionFactory
Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason

Specified by:
createBuildDetectionActionForPluginBuildTrigger in interface BuildDetectionActionFactory
planExecutionConfig - - controls build continuation or restart
Returns:
buildDetectionAction

createScheduledBuildDetectionAction

@NotNull
public BuildDetectionAction createScheduledBuildDetectionAction(@NotNull
                                                                        ImmutableChain chain,
                                                                        @NotNull
                                                                        Map<String,String> triggerConditionsConfiguration)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan

Specified by:
createScheduledBuildDetectionAction in interface BuildDetectionActionFactory
Returns:
buildDetectionAction

createInitialBuildDetectionAction

@NotNull
public BuildDetectionAction createInitialBuildDetectionAction(@NotNull
                                                                      ImmutableChain chain)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan

Specified by:
createInitialBuildDetectionAction in interface BuildDetectionActionFactory
Returns:
buildDetectionAction

createDependentBuildDetectionAction

@NotNull
public BuildDetectionAction createDependentBuildDetectionAction(@NotNull
                                                                        ImmutableChain chain,
                                                                        @NotNull
                                                                        ImmutableChain parentChain,
                                                                        @NotNull
                                                                        BuildContext completedBuildContext)
Description copied from interface: BuildDetectionActionFactory
Creates a new instance of BuildDetectionAction that is used to trigger dependent builds

Specified by:
createDependentBuildDetectionAction in interface BuildDetectionActionFactory
Returns:
buildDetectionAction


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.