-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Pipelines - Variables
-
None
-
1
Summary
Support referencing one Bitbucket variable inside another across all variable scopes (workspace, repository, deployment, pipeline), so that values can be composed/aliased without manual duplication.
Current behavior
Bitbucket does not evaluate variables inside the values of other variables.
Example:
- Workspace variables:
- WORKSPACE_VAR_1 = ${WORKSPACE_VAR_2}
- WORKSPACE_VAR_2 = 1
- Repository variables:
- REPO_VAR_1 = ${WORKSPACE_VAR_1}
Requested behavior
When a variable’s value contains ${OTHER_VAR}{}, Bitbucket resolves OTHER_VAR to its current value at evaluation time.