Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I use a variable in another variable in bitbucket pipeline?

Markus November 28, 2019

Simplified example:

Account variable
A=hello

Deployment variable
B=$A

Expected result: hello
Actual result: $A

What am I doing wrong?

Variants I tried:

B=`$A`
B='$A'
B="$A"
B=${A}

And combinations of these - all with the same outcome.

1 answer

0 votes
Crafton March 29, 2020

Did you figure out how to do this? Or if it's even possible?

Markus April 2, 2020

doesn't seem possible at the moment. I gave up.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events