Class PrepareBuildTask

java.lang.Object
com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
All Implemented Interfaces:
BuildPhase, InterruptibleBuildPhase

public class PrepareBuildTask extends Object implements InterruptibleBuildPhase
Task to clear logs, initialize the build and perform custom pre-build actions
  • Constructor Details

    • PrepareBuildTask

      public PrepareBuildTask()
      Cannot use constructor injection due to how we create this component in DefaultBuildAgent
  • Method Details

    • call

      @NotNull public @NotNull CommonContext call(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull ReadOnlyCapabilitySet capabilitySet)
      Description copied from interface: BuildPhase

      Execute the build task.

      Implementations should regularly check if the calling Thread has been interrupted.

      Specified by:
      call in interface BuildPhase
      Returns:
    • setPluginAccessor

      public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
    • setCustomPreDeploymentActionManager

      public void setCustomPreDeploymentActionManager(CustomPreDeploymentActionManager customPreDeploymentActionManager)
    • setErrorUpdateHandler

      public void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
    • setBuildLoggerManager

      public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
    • setArtifactManager

      public void setArtifactManager(ArtifactManager artifactManager)
    • setTaskExecutor

      public void setTaskExecutor(TaskExecutor taskExecutor)
    • setExecutionPhaseService

      public void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
    • setAgentContext

      public void setAgentContext(AgentContext agentContext)