Hi,
How can I go about to get a list of variables of a Bamboo deployment project?
Appreciate if you could, please, specify the version you are using.
Thanks
Hello @HL
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.
Kind regards,
Eduardo Alvarenga
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_
For example,
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!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the details @HL I hope you are having a good experience with Bamboo!
Thank you,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.