To obtain a list of variables available on a Deployment project you can:
Both methods will print the environment variables that are accessible by Bamboo once the Plan is run.
You can then consume those variables in different ways.
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Hi @Eduardo Alvarenga ,
Thanks for your response. Answer is accepted.
I thought the following might be useful for those who are looking for similar solution - I am using version 6.10.3 and Linux elastic agents. The env command "displays" all variables which include:
- standard Linux environment variables
- built in variables
- global variables
- and deployment project variables
Except the Linux environment variables, the Bamboo variables are prefixed with bamboo_
build 21-Sep-2022 12:57:45 bamboo_my_dummy_var1=val1
build 21-Sep-2022 12:57:45 bamboo_my_dummy_var2=val2
where my_dummy_var1/2 and val1/2 are my deployment variables and values, respectively.
One might need to use the cut (or another util) command to capture the output of the env command.
Thanks again for your help!!