This is my (example) python script:
This is the error I am getting:
/opt/bamboo-home/temp/RTE-RT-HDR-14-ScriptBuildTask-7622273598056907388.sh: 1: /opt/bamboo-home/temp/RTE-RT-HDR-14-ScriptBuildTask-7622273598056907388.sh: !#/opt/bamboo-home/xml-data/build-dir/RTE-RT-HDR/../RTE-RT/env/bin/python3: not found
I have successfully created the virtualenv in a previous stage. Logging into the machine and executing:
It fails with both Interpreters "Shell" and "/bin/sh or cmd.exe".
Since Bamboo only uses "Shell" and "/bin/sh or cmd.exe" I am suspecting running python commands using the script task won't be possible.
But, I have a workaround:
Also, ensure that you have the python in the path such as :
If you find this answer useful, please accept it so that others can also benefit from it.
I've done something similar to Rohit (see above). This is how my script looks now:
(a previous job has created the virtualenv in the plan directory)
G’day Bamboo customers, The wait is over! Bamboo Data Center edition you have been asking for is finally here! This self-managed enterprise offering of Bamboo has the resilience, reliability, and s...
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