Package com.atlassian.bamboo.build
Interface BuildDetectionActionFactory
-
- All Known Implementing Classes:
BuildDetectionActionFactoryImpl
public interface BuildDetectionActionFactory
Factory for creating commonBuildDetectionAction
's
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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
createScheduledBuildDetectionAction(@NotNull ImmutableChain chain, @NotNull Map<String,String> triggerConditionsConfiguration)
Deprecated.since 5.11@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
-
-
-
Method Detail
-
createManualBuildDetectionAction
@NotNull @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)
Creates a new instance ofBuildDetectionAction
that can be used to start the manual execution ofPlan
- Parameters:
chain
-user
-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 @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)
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- Parameters:
chain
-user
-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 @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)
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- Parameters:
chain
-user
-triggerReason
-planTrigger
-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
-
createScheduledBuildDetectionAction
@NotNull @Deprecated @NotNull BuildDetectionAction createScheduledBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String,String> triggerConditionsConfiguration)
Deprecated.since 5.11Creates a new instance ofBuildDetectionAction
that can be used to start the scheduled execution ofPlan
- Parameters:
chain
-triggerConditionsConfiguration
-- Returns:
- buildDetectionAction
-
createScheduledBuildDetectionAction
@NotNull @NotNull BuildDetectionAction createScheduledBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String,String> triggerConditionsConfiguration, @NotNull @NotNull Map<String,String> triggerConfiguration)
Creates a new instance ofBuildDetectionAction
that can be used to start the scheduled execution ofPlan
- Parameters:
chain
-triggerConditionsConfiguration
-triggerConfiguration
-- Returns:
- buildDetectionAction
-
createInitialBuildDetectionAction
@NotNull @NotNull BuildDetectionAction createInitialBuildDetectionAction(@NotNull @NotNull ImmutableChain chain)
Creates a new instance ofBuildDetectionAction
that is used to execute the initial build for aPlan
- Parameters:
chain
-- Returns:
- buildDetectionAction
-
createDependentBuildDetectionAction
@NotNull @NotNull BuildDetectionAction createDependentBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull ImmutableChain parentChain, @NotNull @NotNull BuildContext completedBuildContext)
Creates a new instance ofBuildDetectionAction
that is used to trigger dependent builds- Parameters:
chain
-parentChain
-completedBuildContext
-- Returns:
- buildDetectionAction
-
createBuildDetectionActionForPluginBuildTrigger
@NotNull @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)
- Parameters:
chain
-planExecutionConfig
- - controls build continuation or restarttriggerReason
-buildTrigger
-params
-variables
-- Returns:
- buildDetectionAction
-
-