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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • 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

Is is possible to use a global variable into an instance startup script Edited

I would like to know if possible to set a global variable as a password.

Use that global variable into an remote agent instance configuration script to set a secret env variable.

1 answer

Hi Neculai,

Global variables are not accessible from the startup script text field. I'm afraid you won't be able to save/use credentials that way.

It seems you need those credentials before the agent comes up, otherwise you could just use a plan variable for that, calling it during build time on a script task.

You can create/update environment variables during the startup script, as described in Instance startup script samples - Atlassian Documentation (Appending the path variable), but then you will need to use only the content added in the startup script text field or any external call (REST, SSH, etc) to get the information you want and load it in your variable.

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...

674 views 1 6
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