Package com.atlassian.bamboo.build
Class BuildDetectionActionFactoryImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.BuildDetectionActionFactoryImpl
-
- All Implemented Interfaces:
BuildDetectionActionFactory
public class BuildDetectionActionFactoryImpl extends Object implements BuildDetectionActionFactory
-
-
Constructor Summary
Constructors Constructor Description BuildDetectionActionFactoryImpl(BuildNumberGeneratorService buildNumberGenerator, ChangeDetectionManager changeDetectionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, VariableDefinitionManager variableDefinitionManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ResultsSummaryManager resultsSummaryManager, BranchIntegrationService branchIntegrationService, BuildContextBuilderFactory buildContextBuilderFactory, ResultsSummaryVariableAccessor resultsSummaryVariableAccessor, CustomVariableContext customVariableContext, VcsRepositoryManager vcsRepositoryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BuildDetectionActioncreateBuildDetectionActionForPluginBuildTrigger(@NotNull ImmutableChain chain, @Nullable PlanExecutionConfig planExecutionConfig, @NotNull TriggerReason triggerReason, @NotNull PlanTrigger buildTrigger, @NotNull Map<String,String> params, @NotNull Map<String,String> variables)@NotNull BuildDetectionActioncreateDependentBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull ImmutableChain parentChain, @NotNull BuildContext completedBuildContext)Creates a new instance ofBuildDetectionActionthat is used to trigger dependent builds@NotNull BuildDetectionActioncreateInitialBuildDetectionAction(@NotNull ImmutableChain chain)Creates a new instance ofBuildDetectionActionthat is used to execute the initial build for aPlan@NotNull BuildDetectionActioncreateManualBuildDetectionAction(@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)Creates a new instance ofBuildDetectionActionthat can be used to start the manual execution ofPlanwhen manual stage is meant to continue build or build is restarted@NotNull BuildDetectionActioncreateManualBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull com.atlassian.user.User user, @NotNull Map<String,String> params, @NotNull Map<String,String> variables)Creates a new instance ofBuildDetectionActionthat can be used to start the manual execution ofPlan@NotNull BuildDetectionActioncreateManualBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull com.atlassian.user.User user, @Nullable PlanExecutionConfig planExecutionConfig, @NotNull Map<String,String> params, @NotNull Map<String,String> variables)Creates a new instance ofBuildDetectionActionthat can be used to start the manual execution ofPlanwhen manual stage is meant to continue build or build is restarted@NotNull BuildDetectionActioncreateManualBuildDetectionAction(@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)@NotNull BuildDetectionActioncreateScheduledBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull Map<String,String> triggerConditionsConfiguration)Creates a new instance ofBuildDetectionActionthat can be used to start the scheduled execution ofPlan@NotNull BuildDetectionActioncreateScheduledBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull Map<String,String> triggerConditionsConfiguration, @NotNull Map<String,String> triggerConfiguration)Creates a new instance ofBuildDetectionActionthat can be used to start the scheduled execution ofPlan
-
-
-
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, CustomVariableContext customVariableContext, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Detail
-
createManualBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createManualBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull com.atlassian.user.User user, @NotNull @NotNull Map<String,String> params, @NotNull @NotNull Map<String,String> variables)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat can be used to start the manual execution ofPlan- Specified by:
createManualBuildDetectionActionin interfaceBuildDetectionActionFactoryparams- - additional execution parameters set in code to parametrized build - not exposed to uservariables- - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI- Returns:
- buildDetectionAction
-
createManualBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createManualBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull com.atlassian.user.User user, @Nullable @Nullable PlanExecutionConfig planExecutionConfig, @NotNull @NotNull Map<String,String> params, @NotNull @NotNull Map<String,String> variables)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat can be used to start the manual execution ofPlanwhen manual stage is meant to continue build or build is restarted- Specified by:
createManualBuildDetectionActionin interfaceBuildDetectionActionFactoryplanExecutionConfig- - controls build continuation or restartparams- - additional execution parameters set in code to parametrized build - not exposed to uservariables- - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI- Returns:
- buildDetectionAction
-
createManualBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createManualBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull com.atlassian.user.User user, @NotNull @NotNull TriggerReason triggerReason, @Nullable @Nullable PlanTrigger planTrigger, @Nullable @Nullable PlanExecutionConfig planExecutionConfig, @NotNull @NotNull Map<String,String> params, @NotNull @NotNull Map<String,String> variables)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat can be used to start the manual execution ofPlanwhen manual stage is meant to continue build or build is restarted- Specified by:
createManualBuildDetectionActionin interfaceBuildDetectionActionFactoryplanExecutionConfig- - controls build continuation or restartparams- - additional execution parameters set in code to parametrized build - not exposed to uservariables- - user defined variables that could be parametrized in manual execution - contain only values changed by user in UI- Returns:
- buildDetectionAction
-
createManualBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createManualBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull com.atlassian.user.User user, @Nullable @Nullable PlanExecutionConfig planExecutionConfig, @Nullable @Nullable TriggerReason triggerReason, @Nullable @Nullable PlanTrigger planTrigger, @NotNull @NotNull Map<String,String> params, @NotNull @NotNull Map<String,String> variables)
-
createBuildDetectionActionForPluginBuildTrigger
@NotNull public @NotNull BuildDetectionAction createBuildDetectionActionForPluginBuildTrigger(@NotNull @NotNull ImmutableChain chain, @Nullable @Nullable PlanExecutionConfig planExecutionConfig, @NotNull @NotNull TriggerReason triggerReason, @NotNull @NotNull PlanTrigger buildTrigger, @NotNull @NotNull Map<String,String> params, @NotNull @NotNull Map<String,String> variables)
Description copied from interface:BuildDetectionActionFactory- Specified by:
createBuildDetectionActionForPluginBuildTriggerin interfaceBuildDetectionActionFactoryplanExecutionConfig- - controls build continuation or restart- Returns:
- buildDetectionAction
-
createScheduledBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createScheduledBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String,String> triggerConditionsConfiguration)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat can be used to start the scheduled execution ofPlan- Specified by:
createScheduledBuildDetectionActionin interfaceBuildDetectionActionFactory- Returns:
- buildDetectionAction
-
createScheduledBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createScheduledBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String,String> triggerConditionsConfiguration, @NotNull @NotNull Map<String,String> triggerConfiguration)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat can be used to start the scheduled execution ofPlan- Specified by:
createScheduledBuildDetectionActionin interfaceBuildDetectionActionFactory- Returns:
- buildDetectionAction
-
createInitialBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createInitialBuildDetectionAction(@NotNull @NotNull ImmutableChain chain)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat is used to execute the initial build for aPlan- Specified by:
createInitialBuildDetectionActionin interfaceBuildDetectionActionFactory- Returns:
- buildDetectionAction
-
createDependentBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createDependentBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull ImmutableChain parentChain, @NotNull @NotNull BuildContext completedBuildContext)
Description copied from interface:BuildDetectionActionFactoryCreates a new instance ofBuildDetectionActionthat is used to trigger dependent builds- Specified by:
createDependentBuildDetectionActionin interfaceBuildDetectionActionFactory- Returns:
- buildDetectionAction
-
-