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 BuildDetectionAction
createBuildDetectionActionForPluginBuildTrigger(@NotNull ImmutableChain chain, @Nullable PlanExecutionConfig planExecutionConfig, @NotNull TriggerReason triggerReason, @NotNull PlanTrigger buildTrigger, @NotNull Map<String,String> params, @NotNull Map<String,String> variables)
@NotNull BuildDetectionAction
createDependentBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull ImmutableChain parentChain, @NotNull BuildContext completedBuildContext)
Creates a new instance ofBuildDetectionAction
that is used to trigger dependent builds@NotNull BuildDetectionAction
createInitialBuildDetectionAction(@NotNull ImmutableChain chain)
Creates a new instance ofBuildDetectionAction
that is used to execute the initial build for aPlan
@NotNull 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)
Creates a new instance ofBuildDetectionAction
that can be used to start the manual execution ofPlan
when manual stage is meant to continue build or build is restarted@NotNull BuildDetectionAction
createManualBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull com.atlassian.user.User user, @NotNull Map<String,String> params, @NotNull Map<String,String> variables)
Creates a new instance ofBuildDetectionAction
that can be used to start the manual execution ofPlan
@NotNull BuildDetectionAction
createManualBuildDetectionAction(@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 ofBuildDetectionAction
that can be used to start the manual execution ofPlan
when manual stage is meant to continue build or build is restarted@NotNull 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)
@NotNull BuildDetectionAction
createScheduledBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull Map<String,String> triggerConditionsConfiguration)
Creates a new instance ofBuildDetectionAction
that can be used to start the scheduled execution ofPlan
@NotNull BuildDetectionAction
createScheduledBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull Map<String,String> triggerConditionsConfiguration, @NotNull Map<String,String> triggerConfiguration)
Creates a new instance ofBuildDetectionAction
that 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:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that can be used to start the manual execution ofPlan
- Specified by:
createManualBuildDetectionAction
in interfaceBuildDetectionActionFactory
params
- - 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:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that can be used to start the manual execution ofPlan
when manual stage is meant to continue build or build is restarted- Specified by:
createManualBuildDetectionAction
in interfaceBuildDetectionActionFactory
planExecutionConfig
- - 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:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that can be used to start the manual execution ofPlan
when manual stage is meant to continue build or build is restarted- Specified by:
createManualBuildDetectionAction
in interfaceBuildDetectionActionFactory
planExecutionConfig
- - 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:
createBuildDetectionActionForPluginBuildTrigger
in interfaceBuildDetectionActionFactory
planExecutionConfig
- - 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:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that can be used to start the scheduled execution ofPlan
- Specified by:
createScheduledBuildDetectionAction
in 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:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that can be used to start the scheduled execution ofPlan
- Specified by:
createScheduledBuildDetectionAction
in interfaceBuildDetectionActionFactory
- Returns:
- buildDetectionAction
-
createInitialBuildDetectionAction
@NotNull public @NotNull BuildDetectionAction createInitialBuildDetectionAction(@NotNull @NotNull ImmutableChain chain)
Description copied from interface:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that is used to execute the initial build for aPlan
- Specified by:
createInitialBuildDetectionAction
in 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:BuildDetectionActionFactory
Creates a new instance ofBuildDetectionAction
that is used to trigger dependent builds- Specified by:
createDependentBuildDetectionAction
in interfaceBuildDetectionActionFactory
- Returns:
- buildDetectionAction
-
-