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

Accessing Linux agent environment variables in Bamboo task

MD June 16, 2013

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?

2 answers

0 votes
Deleted user September 1, 2013

any update on this?

0 votes
MD June 16, 2013

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events