Package com.atlassian.bamboo.task
Class TaskExecutionContext
- java.lang.Object
-
- com.atlassian.bamboo.task.TaskExecutionContext
-
@Internal public class TaskExecutionContext extends Object
-
-
Constructor Summary
Constructors Constructor Description TaskExecutionContext(Queue<RuntimeTaskDefinition> tasks, TaskExecutionStrategy executionStrategy, @NotNull CommonContext commonContext, ReadOnlyCapabilitySet capabilities, BuildLoggerManager buildLoggerManager, File defaultRootDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable BuildContext
getBuildContext()
@NotNull BuildLogger
getBuildLogger()
@NotNull ReadOnlyCapabilitySet
getCapabilities()
@NotNull CommonContext
getCommonContext()
@NotNull File
getDefaultRootDirectory()
@Nullable DeploymentContext
getDeploymentContext()
RuntimeTaskDefinition
getNextTaskToExecute()
@NotNull File
getRootDirectory()
boolean
hasTasksToExecute(@Nullable TaskResult taskResult)
-
-
-
Constructor Detail
-
TaskExecutionContext
public TaskExecutionContext(Queue<RuntimeTaskDefinition> tasks, TaskExecutionStrategy executionStrategy, @NotNull @NotNull CommonContext commonContext, ReadOnlyCapabilitySet capabilities, BuildLoggerManager buildLoggerManager, File defaultRootDirectory)
-
-
Method Detail
-
hasTasksToExecute
public boolean hasTasksToExecute(@Nullable @Nullable TaskResult taskResult)
-
getNextTaskToExecute
public RuntimeTaskDefinition getNextTaskToExecute()
-
getBuildContext
@Nullable public @Nullable BuildContext getBuildContext()
-
getCommonContext
@NotNull public @NotNull CommonContext getCommonContext()
-
getDeploymentContext
@Nullable public @Nullable DeploymentContext getDeploymentContext()
-
getCapabilities
@NotNull public @NotNull ReadOnlyCapabilitySet getCapabilities()
-
getBuildLogger
@NotNull public @NotNull BuildLogger getBuildLogger()
-
getRootDirectory
@NotNull public @NotNull File getRootDirectory()
- Returns:
- root of working directory as defined in Job configuration
-
getDefaultRootDirectory
@NotNull public @NotNull File getDefaultRootDirectory()
- Returns:
- default root of working directory defined as ${bamboo.agentWorkingDir}/${bamboo.planKey}
-
-