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
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.voidsetAgentContext(AgentContext agentContext) voidsetArtifactManager(ArtifactManager artifactManager) voidsetBuildLoggerManager(BuildLoggerManager buildLoggerManager) voidsetCustomPreDeploymentActionManager(CustomPreDeploymentActionManager customPreDeploymentActionManager) voidsetErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler) voidsetExecutionPhaseService(ExecutionPhaseService executionPhaseService) voidsetPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) voidsetTaskExecutor(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:BuildPhaseExecute the build task.
Implementations should regularly check if the calling
Threadhas been interrupted.- Specified by:
callin interfaceBuildPhase- Returns:
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) -
setCustomPreDeploymentActionManager
public void setCustomPreDeploymentActionManager(CustomPreDeploymentActionManager customPreDeploymentActionManager) -
setErrorUpdateHandler
-
setBuildLoggerManager
-
setArtifactManager
-
setTaskExecutor
-
setExecutionPhaseService
-
setAgentContext
-