Interface BuildDetectionActionFactory

All Known Implementing Classes:
BuildDetectionActionFactoryImpl

public interface BuildDetectionActionFactory
Factory for creating common BuildDetectionAction's
  • 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 of BuildDetectionAction that can be used to start the manual execution of Plan
      Parameters:
      chain -
      user -
      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
    • 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 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:
      chain -
      user -
      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
    • 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 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:
      chain -
      user -
      triggerReason -
      planTrigger -
      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
    • createScheduledBuildDetectionAction

      @NotNull @Deprecated @NotNull BuildDetectionAction createScheduledBuildDetectionAction(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull Map<String,String> triggerConditionsConfiguration)
      Deprecated.
      since 5.11
      Creates a new instance of BuildDetectionAction that can be used to start the scheduled execution of Plan
      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 of BuildDetectionAction that can be used to start the scheduled execution of Plan
      Parameters:
      chain -
      triggerConditionsConfiguration -
      triggerConfiguration -
      Returns:
      buildDetectionAction
    • createInitialBuildDetectionAction

      @NotNull @NotNull BuildDetectionAction createInitialBuildDetectionAction(@NotNull @NotNull ImmutableChain chain)
      Creates a new instance of BuildDetectionAction that is used to execute the initial build for a Plan
      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 of BuildDetectionAction 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)
      Create a new BuildDetectionAction for the specified PlanTrigger and the TriggerReason
      Parameters:
      chain -
      planExecutionConfig - - controls build continuation or restart
      triggerReason -
      buildTrigger -
      params -
      variables -
      Returns:
      buildDetectionAction