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

Global variables not passed to executables?

Deleted user October 25, 2017

I've created a new executable pointing to this script:

#!/bin/bash

echo "TAGS: $TAGS

and a global variable TAGS with value "foo".

Executing the Plan does not pick up the global variable. Is there a way to make bamboo do that without editing the task and adding it under "Environment variables"?

 

1 answer

1 accepted

0 votes
Answer accepted
robhit
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 3, 2017

Use something like this in the shell file to access the bamboo variables as the environment variable

echo "TAGS: $bamboo_TAGS"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events