Class ExecuteBuildTask

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

public class ExecuteBuildTask extends Object implements InterruptibleBuildPhase, BuildPhase
  • Constructor Details

    • ExecuteBuildTask

      public ExecuteBuildTask()
      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) throws Exception
      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:
      Throws:
      InterruptedException - if the calling Thread has been interrupted.
      Exception - A general exception that will be handled.
    • setBuildLoggerManager

      public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
    • setExecutionPhaseService

      public void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
    • setErrorUpdateHandler

      public void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
    • setPluginAccessor

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

      public void setTaskExecutor(TaskExecutor taskExecutor)