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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,321
Community Members
 
Community Events
185
Community Groups

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

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 11, 2018 • edited

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
TAGS
AUG Leaders

Atlassian Community Events