com.atlassian.bamboo.build
Interface BuildDetectionActionFactory

All Known Implementing Classes:
BuildDetectionActionFactoryImpl

public interface BuildDetectionActionFactory

Factory for creating common BuildDetectionAction's


Method Summary
 BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(Plan plan, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
          Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason
 BuildDetectionAction createDependentBuildDetectionAction(Plan plan, Plan parent, BuildContext completedBuildContext)
          Creates a new instance of BuildDetectionAction that is used to trigger dependent builds
 BuildDetectionAction createInitialBuildDetectionAction(Plan build)
          Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Build
 BuildDetectionAction createManualBuildDetectionAction(Plan plan, com.atlassian.user.User user, java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,java.lang.String> variables)
          Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan
 BuildDetectionAction createManualBuildDetectionAction(Plan plan, 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)
          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(Plan plan)
          Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan
 

Method Detail

createManualBuildDetectionAction

@NotNull
BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                              Plan plan,
                                                              @NotNull
                                                              com.atlassian.user.User user,
                                                              @NotNull
                                                              java.util.Map<java.lang.String,java.lang.String> params,
                                                              @NotNull
                                                              java.util.Map<java.lang.String,java.lang.String> variables)
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan

Parameters:
plan -
user -
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
BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                              Plan plan,
                                                              @NotNull
                                                              com.atlassian.user.User user,
                                                              @NotNull
                                                              PlanExecutionConfig planExecutionConfig,
                                                              @NotNull
                                                              java.util.Map<java.lang.String,java.lang.String> params,
                                                              @NotNull
                                                              java.util.Map<java.lang.String,java.lang.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

Parameters:
plan -
user -
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

createScheduledBuildDetectionAction

@NotNull
BuildDetectionAction createScheduledBuildDetectionAction(@NotNull
                                                                 Plan plan)
Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan

Parameters:
plan -
Returns:
buildDetectionAction

createInitialBuildDetectionAction

@NotNull
BuildDetectionAction createInitialBuildDetectionAction(@NotNull
                                                               Plan build)
Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Build

Parameters:
build -
Returns:
buildDetectionAction

createDependentBuildDetectionAction

@NotNull
BuildDetectionAction createDependentBuildDetectionAction(@NotNull
                                                                 Plan plan,
                                                                 @NotNull
                                                                 Plan parent,
                                                                 @NotNull
                                                                 BuildContext completedBuildContext)
Creates a new instance of BuildDetectionAction that is used to trigger dependent builds

Parameters:
plan -
parent -
completedBuildContext -
Returns:
buildDetectionAction

createBuildDetectionActionForPluginBuildTrigger

@NotNull
BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(@NotNull
                                                                             Plan plan,
                                                                             @Nullable
                                                                             PlanExecutionConfig planExecutionConfig,
                                                                             @NotNull
                                                                             TriggerReason triggerReason,
                                                                             @NotNull
                                                                             PlanTrigger buildTrigger,
                                                                             @NotNull
                                                                             java.util.Map<java.lang.String,java.lang.String> params,
                                                                             @NotNull
                                                                             java.util.Map<java.lang.String,java.lang.String> variables)
Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason

Parameters:
plan -
planExecutionConfig - - controls build continuation or restart
triggerReason -
buildTrigger -
params -
variables -
Returns:
buildDetectionAction


Copyright © 2011 Atlassian. All Rights Reserved.