I want to execute an arbitrary shell script, but I only want it to run on build failure. Is there some way to either:
- Set up Bamboo to run this script only on build failure
- Or check from within the script whether the build was successful. Perhaps an environment/build variable?
Thoughts and ideas appreciated!