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:
parent
13121d0d60
commit
fd7cdbbc4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user