Class ExecuteBuildTask
java.lang.Object
com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask
- All Implemented Interfaces:
BuildPhase,InterruptibleBuildPhase
-
Constructor Summary
ConstructorsConstructorDescriptionCannot use constructor injection due to how we create this component in DefaultBuildAgent -
Method Summary
Modifier and TypeMethodDescription@NotNull CommonContextcall(@NotNull CommonContext commonContext, @NotNull ReadOnlyCapabilitySet capabilitySet) Execute the build task.voidsetBuildLoggerManager(BuildLoggerManager buildLoggerManager) voidsetErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler) voidsetExecutionPhaseService(ExecutionPhaseService executionPhaseService) voidsetPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) voidsetTaskExecutor(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:BuildPhaseExecute the build task.
Implementations should regularly check if the calling
Threadhas been interrupted.- Specified by:
callin interfaceBuildPhase- Returns:
- Throws:
InterruptedException- if the callingThreadhas been interrupted.Exception- A general exception that will be handled.
-
setBuildLoggerManager
-
setExecutionPhaseService
-
setErrorUpdateHandler
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) -
setTaskExecutor
-