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
-
public class InjectVariablesTask extends Task<InjectVariablesTask,InjectVariablesTaskProperties>
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.LOCALand 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
Constructors Constructor Description InjectVariablesTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull InjectVariablesTaskPropertiesbuild()booleanequals(java.lang.Object o)inthashCode()InjectVariablesTasknamespace(@NotNull java.lang.String namespace)Specifies namespace to avoid name conflicts with existing variables.InjectVariablesTaskpath(@NotNull java.lang.String path)Specifies path to properties file.InjectVariablesTaskscope(@NotNull InjectVariablesScope scope)Specifies scope of the created variables to result.InjectVariablesTaskscopeLocal()Specifies scope of the created variables to local.InjectVariablesTaskscopeResult()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
-
-
-
-
Method Detail
-
path
public InjectVariablesTask path(@NotNull @NotNull java.lang.String path)
Specifies path to properties file. File will be read when task is run and variables will be created.
-
namespace
public InjectVariablesTask namespace(@NotNull @NotNull java.lang.String namespace)
Specifies namespace to avoid name conflicts with existing variables.
-
scopeLocal
public InjectVariablesTask scopeLocal()
Specifies scope of the created variables to local. They will be available only in current job.
-
scopeResult
public InjectVariablesTask 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
public InjectVariablesTask scope(@NotNull @NotNull InjectVariablesScope scope)
Specifies scope of the created variables to result.
-
build
@NotNull protected @NotNull InjectVariablesTaskProperties build()
- Specified by:
buildin classTask<InjectVariablesTask,InjectVariablesTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<InjectVariablesTask,InjectVariablesTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<InjectVariablesTask,InjectVariablesTaskProperties>
-
-