Class InjectVariablesTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<InjectVariablesTask,InjectVariablesTaskProperties>
com.atlassian.bamboo.specs.builders.task.InjectVariablesTask
Represents a task that injects Bamboo variables from a file in a simple "key=value" format. File
is read on agent when the task is run.
By default scope of extracted variables is set to InjectVariablesScope.LOCAL
and the
namespace is set to "inject".
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull InjectVariablesTaskProperties
build()
boolean
int
hashCode()
Specifies namespace to avoid name conflicts with existing variables.Specifies path to properties file.scope
(@NotNull InjectVariablesScope scope) Specifies scope of the created variables to result.Specifies scope of the created variables to local.Specifies scope of the created variables to result.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
InjectVariablesTask
public InjectVariablesTask()
-
-
Method Details
-
path
Specifies path to properties file. File will be read when task is run and variables will be created. -
namespace
Specifies namespace to avoid name conflicts with existing variables. -
scopeLocal
Specifies scope of the created variables to local. They will be available only in current job. -
scopeResult
Specifies scope of the created variables to result. They will be available in subsequent stages of this plan and in releases created from the result. -
scope
Specifies scope of the created variables to result. -
build
- Specified by:
build
in classTask<InjectVariablesTask,
InjectVariablesTaskProperties>
-
equals
- Overrides:
equals
in classTask<InjectVariablesTask,
InjectVariablesTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<InjectVariablesTask,
InjectVariablesTaskProperties>
-