com.atlassian.bamboo.v2.build.task
Interface BuildTask

All Superinterfaces:
java.util.concurrent.Callable<BuildContext>
All Known Subinterfaces:
AgentBuildTask, CapabililitiesAwareBuildTask, CustomBuildProcessor, CustomBuildProcessorServer, CustomPostBuildCompletedAction, CustomPreBuildAction, CustomPreBuildQueuedAction, InterruptibleBuildTask
All Known Implementing Classes:
AbstractBuildTask, BaseConfigurableBuildPlugin, BuildArtifactPostProcessor, BuildLabeller, BuildMonitoringPerPlanPlugin, BuildNumberStamper, CloverBuildProcessor, CloverDeltaCalculator, CloverGrailsPreBuildAction, ExecuteBuildTask, InitializeBuild, MavenDependenciesServerPostProcessor, PrepareBuildTask, VCSVersionReader

public interface BuildTask
extends java.util.concurrent.Callable<BuildContext>

Interface the defines a basic interface for a task in Bamboo. All call() methods return BuildContext objects.


Method Summary
 BuildContext call()
          Execute the build task.
 void init(BuildContext buildContext)
           
 

Method Detail

init

void init(@NotNull
          BuildContext buildContext)

call

@NotNull
BuildContext call()
                  throws java.lang.InterruptedException,
                         java.lang.Exception

Execute the build task.

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

Specified by:
call in interface java.util.concurrent.Callable<BuildContext>
Returns:
Throws:
java.lang.InterruptedException - if the calling Thread has been interrupted.
java.lang.Exception - A general exception that will be handled.


Copyright © 2012 Atlassian. All Rights Reserved.