public interface CommonTaskContext extends InternalTaskContext
Modifier and Type | Method and Description |
---|---|
boolean |
doesTaskProduceTestResults() |
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) . |
File |
getRootDirectory()
Get build root directory (where sources were checked out)
|
Map<String,String> |
getRuntimeTaskContext() |
Map<String,WhitelistedSerializable> |
getRuntimeTaskData() |
File |
getWorkingDirectory()
Get build working directory (where task should be executed).
|
getId, getPluginKey, getUserDescription, isEnabled, isFinalising
@NotNull CommonContext getCommonContext()
@NotNull BuildLogger getBuildLogger()
@NotNull File getRootDirectory()
@NotNull File getWorkingDirectory()
Default implementation checks for the TaskConfigConstants.CFG_WORKING_SUBDIRECTORY
key in the
TaskConfiguration if such key exists and has not empty value then working directory would be getRootDirectory() +
value of TaskConfigConstants.CFG_WORKING_SUBDIRECTORY
key.
@NotNull ConfigurationMap getConfigurationMap()
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.@Nullable Map<String,String> getRuntimeTaskContext()
@Nullable Map<String,WhitelistedSerializable> getRuntimeTaskData()
boolean doesTaskProduceTestResults()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.