Package com.atlassian.bamboo.build
Interface BuildDetectionActionFactory
- All Known Implementing Classes:
BuildDetectionActionFactoryImpl
public interface BuildDetectionActionFactory
Factory for creating common
BuildDetectionAction's-
Method Summary
Modifier and TypeMethodDescription@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 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
-
Method Details
-
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 ofBuildDetectionActionthat 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 ofBuildDetectionActionthat can be used to start the manual execution ofPlanwhen 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 ofBuildDetectionActionthat can be used to start the manual execution ofPlanwhen 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 @NotNull BuildDetectionAction createScheduledBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String, String> triggerConditionsConfiguration, @NotNull @NotNull Map<String, String> triggerConfiguration) Creates a new instance ofBuildDetectionActionthat 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 ofBuildDetectionActionthat 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 ofBuildDetectionActionthat 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
-