I am using Bamboo 6.4. I inserted a Script task to compile my project. But due to the fact that "/bin" is inserted in front of the $PATH the wrong g++ / gcc compiler is used and generated errors. I have installed gcc devtoolset-7 and want to use that version of the compiler.
Is this expected behavior of the Script task - insert /bin in front of the $PATH.
To fix this issue, I had to insert this in the Inline Script Body:
# Bamboo for some reason pust /bin first in PATH, therefore wrong g++ compile used.
# Therefore, have to put path to proper devtoolset first here.
According to my recent tests Bamboo will not deliberately add the /bin folder in your path. I did notice that a remote agent may add the JAVA path to the PATH variable which probably would not be an issue for you.
The PATH and other variables will be inherited as described below:
What I would check:
I'll wait for your comments.
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events