Bamboo agent doesn't use correct PATH (Ubuntu)

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

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

0 vote

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

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot