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

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.task.AbstractBuildTask
      extended by com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
All Implemented Interfaces:
AgentBuildTask, BuildTask, java.util.concurrent.Callable<BuildContext>

public class PrepareBuildTask
extends AbstractBuildTask
implements AgentBuildTask

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


Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
buildContext
 
Constructor Summary
PrepareBuildTask()
           
 
Method Summary
 BuildContext call()
          Execute the build task.
 void init(BuildContext buildContext, ReadOnlyCapabilitySet capabilitySet)
           
 void setArtifactManager(ArtifactManager artifactManager)
           
 void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
           
 void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setTaskExecutor(TaskExecutor taskExecutor)
           
 
Methods inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
calculateBuildAndLifeCycleState, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.task.BuildTask
init
 

Constructor Detail

PrepareBuildTask

public PrepareBuildTask()
Method Detail

init

public void init(BuildContext buildContext,
                 @NotNull
                 ReadOnlyCapabilitySet capabilitySet)

call

@NotNull
public BuildContext call()
Description copied from interface: BuildTask

Execute the build task.

Implementations should regularly check if the calling Thread has been interrupted.

Specified by:
call in interface BuildTask
Specified by:
call in interface java.util.concurrent.Callable<BuildContext>

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)


Copyright © 2012 Atlassian. All Rights Reserved.