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.
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.
We’re preparing for Bamboo 8.0, which will be our first Data Center release. To make sure our app vendors and customers with written in-house apps are prepared, we’re launching Bamboo 8.0 Early Acces...
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