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:
#!/bin/bash
# Bamboo for some reason pust /bin first in PATH, therefore wrong g++ compile used.
# Therefore, have to put path to proper devtoolset first here.
export PATH=/opt/rh/devtoolset-7/root/usr/bin:$PATH:.