Hi team,
I'm trying to trigger bamboo email notification when the below conditions succeed, for that in the notification section I have configured a job error event to trigger the notification without marking build failure, adding my code snippet below please help.
if grep "| HIGH" /tmp/trivy_scan.log
then
echo "ERROR : Trivy scan has HIGH severity vulnerabilities, please check the detailed log in artifact section to know more..."
rm -r some_dir 2>&1 >/dev/null ## test command to generate error
else
echo "Scan success..."
fi
echo $?