@PublicApi
public interface VariableConfigurationService
Modifier and Type | Method and Description |
---|---|
VariableDefinition |
createGlobalVariable(String variableKey,
String variableValue)
Creates new Global variable.
|
VariableDefinition |
createPlanVariable(Plan plan,
String variableKey,
String variableValue)
Creates new Plan variable.
|
VariableDefinition |
createUniqueGlobalVariable(String variableKey,
String variableValue)
Creates new global variable.
|
VariableDefinition |
createUniquePlanVariable(Plan plan,
String variableKey,
String variableValue)
Creates new Plan variable.
|
VariableDefinition |
createVariableForEnvironment(long environmentId,
String variableKey,
String variableValue)
Creates new variable for Deployment Environment
|
void |
deleteVariableDefinition(VariableDefinition variableDefinition)
Removes
VariableDefinition |
void |
setPlanVariables(Chain plan,
List<com.atlassian.bamboo.specs.api.model.VariableProperties> variables)
Creates complete plan variables list.
|
VariableDefinition |
updateVariableDefinition(VariableDefinition variableDefinition,
String previousValue)
Updates
VariableDefinition |
@NotNull VariableDefinition createUniquePlanVariable(@NotNull Plan plan, @NotNull String variableKey, @NotNull String variableValue)
plan
- plan the variable belongs tovariableKey
- variable key.variableValue
- variable valueVariableDefinition
@NotNull VariableDefinition createUniqueGlobalVariable(@NotNull String variableKey, @NotNull String variableValue)
variableKey
- variable key.variableValue
- variable valueVariableDefinition
@NotNull VariableDefinition createPlanVariable(@NotNull Plan plan, @NotNull String variableKey, @NotNull String variableValue)
plan
- plan the variable belongs tovariableKey
- variable key.variableValue
- variable valueVariableDefinition
IllegalArgumentException
- iff variable key is not unique@NotNull VariableDefinition createVariableForEnvironment(long environmentId, @NotNull String variableKey, @NotNull String variableValue)
environmentId
- variableKey
- variable key.variableValue
- variable valueVariableDefinition
IllegalArgumentException
- iff variable key is not unique or com.atlassian.bamboo.deployments.environments.Environment does not exist@NotNull VariableDefinition createGlobalVariable(@NotNull String variableKey, @NotNull String variableValue)
variableValue
- variable valueVariableDefinition
IllegalArgumentException
- iff variable key is not unique@NotNull VariableDefinition updateVariableDefinition(@NotNull VariableDefinition variableDefinition, String previousValue)
VariableDefinition
IllegalArgumentException
- iff variable key is not uniquevoid deleteVariableDefinition(@NotNull VariableDefinition variableDefinition)
VariableDefinition
void setPlanVariables(@NotNull Chain plan, @NotNull List<com.atlassian.bamboo.specs.api.model.VariableProperties> variables)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.