I have a python script to parse Bamboo build logs which I would like to run as a post build task to parse build logs.
How can I run python scripts under Bamboo Build Task?
If your Python script is part of the repository that you check out, you can use a Script Task that runs "python yourscript.py".
replace "python" with the full path of the python executable if it's not in your PATH.
You can also use the Script Task directly with an inline Python script.
This trick works for me on OSX and Linux:
/usr/bin/python <<EOF
print "Hello, World!"
EOF
If you need to run the Python script in the Post Build step you can't use the inline script, you'll have to call "python yourscript.py".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome
Feel free to hit the "Accept answer" button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How would you use a virtual env that has been created in a previous step of the plan?
Assume it's available under:
/opt/bamboo-home/xml-data/build-dir/RTE-RT-CPVE/env
More precise question: Where do you get the previous stage folder from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also facing the same issue
https://community.atlassian.com/t5/Bamboo-questions/python-can-t-open-file-Bamboo/qaq-p/1138708
Could you please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.