com.atlassian.bamboo.build
Interface BuildDetectionActionFactory

All Known Implementing Classes:
BuildDetectionActionFactoryImpl

public interface BuildDetectionActionFactory

Factory for creating common BuildDetectionAction's


Method Summary
 BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(ImmutableChain chain, 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(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, 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(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)
          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, TriggerReason triggerReason, PlanTrigger planTrigger, 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(ImmutableChain chain)
          Deprecated. since 4.3 use createScheduledBuildDetectionAction(ImmutableChain, Map)
 BuildDetectionAction createScheduledBuildDetectionAction(ImmutableChain chain, java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration)
          Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan
 

Method Detail

createManualBuildDetectionAction

@NotNull
BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                              ImmutableChain chain,
                                                              @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:
chain -
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
                                                              ImmutableChain chain,
                                                              @NotNull
                                                              com.atlassian.user.User user,
                                                              @Nullable
                                                              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:
chain -
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

createManualBuildDetectionAction

@NotNull
BuildDetectionAction createManualBuildDetectionAction(@NotNull
                                                              ImmutableChain chain,
                                                              @NotNull
                                                              com.atlassian.user.User user,
                                                              @NotNull
                                                              TriggerReason triggerReason,
                                                              @Nullable
                                                              PlanTrigger planTrigger,
                                                              @Nullable
                                                              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:
chain -
user -
triggerReason -
planTrigger -
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
@Deprecated
BuildDetectionAction createScheduledBuildDetectionAction(@NotNull
                                                                            ImmutableChain chain)
Deprecated. since 4.3 use createScheduledBuildDetectionAction(ImmutableChain, Map)

Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan

Parameters:
chain@return - buildDetectionAction

createScheduledBuildDetectionAction

@NotNull
BuildDetectionAction createScheduledBuildDetectionAction(@NotNull
                                                                 ImmutableChain chain,
                                                                 @NotNull
                                                                 java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration)
Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan

Parameters:
chain -
triggerConditionsConfiguration -
Returns:
buildDetectionAction

createInitialBuildDetectionAction

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

Parameters:
chain -
Returns:
buildDetectionAction

createDependentBuildDetectionAction

@NotNull
BuildDetectionAction createDependentBuildDetectionAction(@NotNull
                                                                 ImmutableChain chain,
                                                                 @NotNull
                                                                 ImmutableChain parentChain,
                                                                 @NotNull
                                                                 BuildContext completedBuildContext)
Creates a new instance of BuildDetectionAction that is used to trigger dependent builds

Parameters:
chain -
parentChain -
completedBuildContext -
Returns:
buildDetectionAction

createBuildDetectionActionForPluginBuildTrigger

@NotNull
BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(@NotNull
                                                                             ImmutableChain chain,
                                                                             @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:
chain -
planExecutionConfig - - controls build continuation or restart
triggerReason -
buildTrigger -
params -
variables -
Returns:
buildDetectionAction


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.