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, HibernateBuildTask, InterruptibleBuildTask
All Known Implementing Classes:
AbstractBuildTask, BaseConfigurableBuildPlugin, BuildArtifactPostProcessor, BuildLabeller, BuildMonitoringPerPlanPlugin, CloverBuildProcessor, CloverDeltaCalculator, CloverGrailsPreBuildAction, MavenDependenciesServerPostProcessor, VCSVersionReader

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

Interface that 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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.