I have created a small bash script that I am using on Bamboo via a Linux Instance. I am no bash expert, so maybe I am doing something stupid, but when I execute this code:
grep -e "All Component Failures\|All Test Failures:" $1 > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo "Exited with no Errors Detected"
echo "Build generated errors Has in Pre-deployment Enviroment"
I exit 0 if I feed it the string "All Test Failures" - this is incorrect.
Now if I run the same script on my Mac against I log I dl'ed from Bamboo, it finds the error and exits 1.
So, I am confused - I would at least expect the same results on Bamboo and my desktop.
Does anyone have any insight, or know what is causing this?
I'm John Allspaw, co-founder of Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs