Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Markus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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