com.atlassian.bamboo.build.pipeline.tasks
Class PrepareBuildTask

java.lang.Object
  extended by com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
All Implemented Interfaces:
BuildPhase

public class PrepareBuildTask
extends java.lang.Object
implements BuildPhase

Task to clear logs, initialize the build and perform custom pre-build actions


Constructor Summary
PrepareBuildTask()
          Cannot use constructor injection due to how we create this component in DefaultBuildAgent
 
Method Summary
 CommonContext call(CommonContext commonContext, ReadOnlyCapabilitySet capabilitySet)
          Execute the build task.
 void setArtifactManager(ArtifactManager artifactManager)
           
 void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
           
 void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
           
 void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setTaskExecutor(TaskExecutor taskExecutor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepareBuildTask

public PrepareBuildTask()
Cannot use constructor injection due to how we create this component in DefaultBuildAgent

Method Detail

call

@NotNull
public CommonContext call(@NotNull
                                  CommonContext commonContext,
                                  @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 interface BuildPhase
Returns:

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

setErrorUpdateHandler

public void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)

setBuildLoggerManager

public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)

setArtifactManager

public void setArtifactManager(ArtifactManager artifactManager)

setTaskExecutor

public void setTaskExecutor(TaskExecutor taskExecutor)

setExecutionPhaseService

public void setExecutionPhaseService(ExecutionPhaseService executionPhaseService)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.