if we fail to send mail, the job should fail

Exit announce.sh with the status code of the send-mail command, so that
if it fails the job is marked as failed instead of successful.

Change-Id: I93b4bbd6d076cb7055089356e761f98aa853c9d7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2016-08-05 13:37:25 -04:00
parent 13121d0d60
commit fd7cdbbc4c
1 changed files with 1 additions and 4 deletions

View File

@ -168,7 +168,4 @@ echo $relnotes_file
echo
echo "Sending release announcement"
send-mail -v $relnotes_file || \
echo "Sending failed, see $relnotes_file for message body"
exit 0
send-mail -v $relnotes_file