I have set an environment variable on my Linux remote agent by editing /etc/environment. I verified that the variable is set using printenv.
When I run a task on the agent, this variable is not available. I tried running an inline script task which executed printenv, and it looks like most environment variables are not available.
How can I access my environment variable from a Bamboo task?
Seems like Bamboo only picks up environment variables that are available during a sudo command. I used visudo to add my environment variable to the env_keep setting in /etc/sudoers and everything is working!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.