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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I can't get a variable I installed to work

I have a TODAY variable defined in a properties file for my build:




It's injected successfully (as far as I can tell) but I try using it and I just get the literal of what I try, so far





What am I doing wrong?

2 answers

1 accepted

1 vote
Answer accepted
rsperafico Atlassian Team Oct 05, 2018

Hi @Mark McWiggins,

Since you are using Inject Bamboo Variables task, there is a field called Namespace where its default is "inject". At the same time, there is a property called Scope of the variables in which you can select Local or Result.

If you want to make use of the variable in the JOB where Bamboo Variables task is being called, then you should select Local under Scope of the variables, otherwise Result.

On Windows, you should be able to call this variable as:

echo "bamboo.inject.TODAY: " %bamboo.inject.TODAY%
echo "bamboo_inject_TODAY: " %bamboo_inject_TODAY%

Please, notice inject in variable, which is the Namespace provided in Bamboo Variables task

If you are unsure on which variables are available to your JOB, please add Dump variables to log task just after the Bamboo Variables task and you should find the following entry in build log:

simple    05-Oct-2018 10:27:31    Starting task 'Dump variables to log' of type 'com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin:dump'
simple    05-Oct-2018 10:27:31    ---- DUMPING VARIABLES TO LOG ---
simple    05-Oct-2018 10:27:31    key: [inject.TODAY] value: [10042018] type: CUSTOM
simple    05-Oct-2018 10:27:31    ---- END DUMPING VARIABLES TO LOG  ---
simple    05-Oct-2018 10:27:31    Finished task 'Dump variables to log' with result: Success

Kind regards,


I also tried


(this is Windows)

... with similar lack of results.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

943 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you