The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo agent doesn't use correct PATH (Ubuntu)

Mark Derbecker
December 19, 2013

I'm using the Ubuntu agent to try to do a Grunt build. After many days of slogging, I'm so close I can taste it.

My last problem is that the Elastic Agent is not building with a proper PATH variable, and therefore is not finding my installation of Compass and Ruby (which is part of my custom AMI Image, which was derived from the stock Bamboo Ubuntu image).

I don't know how to fix this. If I SSH in as 'ec2-user', the PATH is correct and I can build no problem. If I SSH in as 'ubuntu', again the PATH is correct. I have modified /etc/environment to have the correct PATH.

When the Elastic Agent tries to build, it can't find Compass.

How do I get it to use the correct PATH?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Mark Derbecker
December 25, 2013

I fixed this by including a PATH= line on the build script (prior to executing my build command).

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2013

You probably need to change the PATH for 'bamboo' user.

TAGS
AUG Leaders

Atlassian Community Events