public class

BuildDetectionActionFactoryImpl

extends Object
implements BuildDetectionActionFactory
java.lang.Object
   ↳ com.atlassian.bamboo.build.BuildDetectionActionFactoryImpl

Summary

Public Constructors
BuildDetectionActionFactoryImpl(BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, VariableDefinitionManager variableDefinitionManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ResultsSummaryManager resultsSummaryManager, ImmutablePlanCacheService immutablePlanCacheService)
Public Methods
@NotNull BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(ImmutableChain chain, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, Map<StringString> params, Map<StringString> variables)
Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason
@NotNull BuildDetectionAction createDependentBuildDetectionAction(ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext)
Creates a new instance of BuildDetectionAction that is used to trigger dependent builds
@NotNull BuildDetectionAction createInitialBuildDetectionAction(ImmutableChain chain)
Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan
@NotNull BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, User user, PlanExecutionConfig planExecutionConfig, Map<StringString> params, Map<StringString> 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
@NotNull BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, User user, Map<StringString> params, Map<StringString> variables)
Creates a new instance of BuildDetectionAction that can be used to start the manual execution of Plan
@NotNull BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, User user, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, Map<StringString> params, Map<StringString> variables)
@NotNull BuildDetectionAction createManualBuildDetectionAction(ImmutableChain chain, User user, TriggerReason triggerReason, PlanTrigger planTrigger, PlanExecutionConfig planExecutionConfig, Map<StringString> params, Map<StringString> 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
@NotNull BuildDetectionAction createScheduledBuildDetectionAction(ImmutableChain chain)
Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bamboo.build.BuildDetectionActionFactory

Public Constructors

public BuildDetectionActionFactoryImpl (BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, VariableDefinitionManager variableDefinitionManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ResultsSummaryManager resultsSummaryManager, ImmutablePlanCacheService immutablePlanCacheService)

Public Methods

@NotNull public BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger (ImmutableChain chain, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, Map<StringString> params, Map<StringString> variables)

Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason

Parameters
planExecutionConfig - controls build continuation or restart
Returns
  • buildDetectionAction

@NotNull public BuildDetectionAction createDependentBuildDetectionAction (ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext)

Creates a new instance of BuildDetectionAction that is used to trigger dependent builds

Returns
  • buildDetectionAction

@NotNull public BuildDetectionAction createInitialBuildDetectionAction (ImmutableChain chain)

Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan

Returns
  • buildDetectionAction

@NotNull public BuildDetectionAction createManualBuildDetectionAction (ImmutableChain chain, User user, PlanExecutionConfig planExecutionConfig, Map<StringString> params, Map<StringString> 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
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

@NotNull public BuildDetectionAction createManualBuildDetectionAction (ImmutableChain chain, User user, Map<StringString> params, Map<StringString> variables)

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

Parameters
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

@NotNull public BuildDetectionAction createManualBuildDetectionAction (ImmutableChain chain, User user, PlanExecutionConfig planExecutionConfig, TriggerReason triggerReason, PlanTrigger buildTrigger, Map<StringString> params, Map<StringString> variables)

@NotNull public BuildDetectionAction createManualBuildDetectionAction (ImmutableChain chain, User user, TriggerReason triggerReason, PlanTrigger planTrigger, PlanExecutionConfig planExecutionConfig, Map<StringString> params, Map<StringString> 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
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

@NotNull public BuildDetectionAction createScheduledBuildDetectionAction (ImmutableChain chain)

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