@PublicApi public interface TaskContext extends CommonTaskContext
TaskType,
TaskIdentifier| Modifier and Type | Method and Description |
|---|---|
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(). |
File |
getRootDirectory()
Get build root directory (where sources were checked out)
|
Map<String,String> |
getRuntimeTaskContext() |
File |
getWorkingDirectory()
Get build working directory (where task should be executed).
|
doesTaskProduceTestResults, getCommonContextgetId, getPluginKey, getUserDescription, isEnabled, isFinalising@NotNull BuildContext getBuildContext()
@NotNull BuildLogger getBuildLogger()
getBuildLogger in interface CommonTaskContext@NotNull File getRootDirectory()
getRootDirectory in interface CommonTaskContext@NotNull 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.getWorkingDirectory in interface CommonTaskContext@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.getConfigurationMap in interface CommonTaskContext@Nullable Map<String,String> getRuntimeTaskContext()
getRuntimeTaskContext in interface CommonTaskContextCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.