|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskContext
Encapsulates the environment and configuration of a task running in a building environment.
TaskType
,
TaskIdentifier
Method Summary | |
---|---|
BuildContext |
getBuildContext()
Contains all the build related information about the running of the tasks |
BuildLogger |
getBuildLogger()
Returns the appropriate logger for the task |
ConfigurationMap |
getConfigurationMap()
A Map of String values from TaskDefinition.getConfiguration() where the values have gone through
variable substitution through CustomVariableContext#substituteString() . |
java.io.File |
getRootDirectory()
Get build root directory (where sources were checked out) |
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, isFinalising |
Method Detail |
---|
@NotNull BuildContext getBuildContext()
@NotNull BuildLogger getBuildLogger()
@NotNull java.io.File getRootDirectory()
@NotNull java.io.File getWorkingDirectory()
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.
@NotNull ConfigurationMap getConfigurationMap()
Map
of String
values from TaskDefinition.getConfiguration()
where the values have gone through
variable substitution through CustomVariableContext#substituteString()
. All ${bamboo.*} and ${system.*} params are
substituted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |