Class PrepareBuildTask
java.lang.Object
com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
- All Implemented Interfaces:
BuildPhase
,InterruptibleBuildPhase
Task to clear logs, initialize the build and perform custom pre-build actions
-
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
setAgentContext
(AgentContext agentContext) void
setArtifactManager
(ArtifactManager artifactManager) void
setBuildLoggerManager
(BuildLoggerManager buildLoggerManager) void
setCustomPreDeploymentActionManager
(CustomPreDeploymentActionManager customPreDeploymentActionManager) void
setErrorUpdateHandler
(ErrorUpdateHandler errorUpdateHandler) void
setExecutionPhaseService
(ExecutionPhaseService executionPhaseService) void
setPluginAccessor
(com.atlassian.plugin.PluginAccessor pluginAccessor) void
setTaskExecutor
(TaskExecutor taskExecutor)
-
Constructor Details
-
PrepareBuildTask
public PrepareBuildTask()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) 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:
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) -
setCustomPreDeploymentActionManager
public void setCustomPreDeploymentActionManager(CustomPreDeploymentActionManager customPreDeploymentActionManager) -
setErrorUpdateHandler
-
setBuildLoggerManager
-
setArtifactManager
-
setTaskExecutor
-
setExecutionPhaseService
-
setAgentContext
-