Class ExecuteBuildTask
java.lang.Object
com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask
- All Implemented Interfaces:
BuildPhase
,InterruptibleBuildPhase
-
Constructor Summary
ConstructorDescriptionCannot use constructor injection due to how we create this component in DefaultBuildAgent -
Method Summary
Modifier and TypeMethodDescription@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)
-
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 interfaceBuildPhase
- Returns:
- Throws:
InterruptedException
- if the callingThread
has been interrupted.Exception
- A general exception that will be handled.
-
setBuildLoggerManager
-
setExecutionPhaseService
-
setErrorUpdateHandler
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) -
setTaskExecutor
-