Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,314
Community Members
 
Community Events
168
Community Groups

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

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 Apr 05, 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

Yes, It works. Thanks!

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

Atlassian Community Events