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

How to use Bamboo Variables in the linux session on the machine?

Edward Snowden April 5, 2018

I wan to make use of bamboo Variables in the shell script available on my Linux Server where Bamboo is hosted. I have tried using ${bamboo.build.working.directory} but this doesn't works.

 

Any help is greatly appreciated.

Thanks,

Edward

2 answers

1 accepted

1 vote
Answer accepted
robhit
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

Hi Edward,

Thanks for your question!

Try using this - ${bamboo_build_working_directory}

Explanation - When you want to use the Bamboo Variables in the session we have to replace the "." with "_"

So ${bamboo.build.working.directory} -- Will be replaced with ==> ${bamboo_build_working_directory}

Hope this will help.

Thanks,
Robhit

Edward Snowden April 5, 2018

Yes, It works. Thanks!

1 vote
Robert Kulyassa April 5, 2018

You can list all the available shell variables by the "set" command. The bamboo variables start with the word "bamboo" so you can filter them:

set | grep ^bamboo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events