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 community, job interviews, interview tips, career advice, interview preparation, job search, interview experiences, hiring process, atlassian careers, community discussion, interview best practices

Interview Tips & Pet Peeves ✍️

Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.

Share you experiences!
AUG Leaders

Atlassian Community Events