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 Summary
Constructors Constructor Description ExecuteBuildTask()
Cannot use constructor injection due to how we create this component in DefaultBuildAgent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull CommonContext
call(@NotNull CommonContext commonContext, @NotNull ReadOnlyCapabilitySet capabilitySet)
Execute the build task.void
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
void
setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
void
setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
void
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
void
setTaskExecutor(TaskExecutor taskExecutor)
-
-
-
Method Detail
-
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 interfaceBuildPhase
- Returns:
- Throws:
InterruptedException
- if the callingThread
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)
-
-