public class ExecuteBuildTask extends Object implements InterruptibleBuildPhase, BuildPhase
Constructor and Description |
---|
ExecuteBuildTask()
Cannot use constructor injection due to how we create this component in DefaultBuildAgent
|
Modifier and Type | Method and 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) |
public ExecuteBuildTask()
@NotNull public @NotNull CommonContext call(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull ReadOnlyCapabilitySet capabilitySet) throws Exception
BuildPhase
Execute the build task.
Implementations should regularly check if the calling Thread
has been interrupted.
call
in interface BuildPhase
InterruptedException
- if the calling Thread
has been interrupted.Exception
- A general exception that will be handled.public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
public void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
public void setTaskExecutor(TaskExecutor taskExecutor)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.