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 edited

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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events