com.atlassian.bamboo.task
Interface CommonTaskContext

All Superinterfaces:
InternalTaskContext, TaskIdentifier
All Known Subinterfaces:
DeploymentTaskContext, TaskContext
All Known Implementing Classes:
CommonTaskContextImpl, DeploymentTaskContextImpl, TaskContextImpl

public interface CommonTaskContext
extends InternalTaskContext


Method Summary
 BuildLogger getBuildLogger()
          Returns the appropriate logger for the task
 CommonContext getCommonContext()
          Contains all the build related information about the running of the tasks
 ConfigurationMap getConfigurationMap()
          A Map of String values from TaskDefinition.getConfiguration() where the values have gone through variable substitution through CustomVariableContext.substituteString(String).
 java.io.File getRootDirectory()
          Get build root directory (where sources were checked out)
 java.util.Map<java.lang.String,java.lang.String> getRuntimeTaskContext()
           
 java.io.File getWorkingDirectory()
          Get build working directory (where task should be executed).
 
Methods inherited from interface com.atlassian.bamboo.task.TaskIdentifier
getId, getPluginKey, getUserDescription, isEnabled, isFinalising
 

Method Detail

getCommonContext

@NotNull
CommonContext getCommonContext()
Contains all the build related information about the running of the tasks

Returns:

getBuildLogger

@NotNull
BuildLogger getBuildLogger()
Returns the appropriate logger for the task

Returns:

getRootDirectory

@NotNull
java.io.File getRootDirectory()
Get build root directory (where sources were checked out)

Returns:
Build root directory

getWorkingDirectory

@NotNull
java.io.File getWorkingDirectory()
Get build working directory (where task should be executed).

Default implementation checks for the TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY key in the TaskConfiguration if such key exists and has not empty value then working directory would be getRootDirectory() + value of TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY key.

Returns:
Build working directory

getConfigurationMap

@NotNull
ConfigurationMap getConfigurationMap()
A Map of String values from TaskDefinition.getConfiguration() where the values have gone through variable substitution through CustomVariableContext.substituteString(String). All ${bamboo.*} and ${system.*} params are substituted.

Returns:

getRuntimeTaskContext

@Nullable
java.util.Map<java.lang.String,java.lang.String> getRuntimeTaskContext()


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