If compose fails, stop running everything else
If a compose fails, we don't want to run any dependency checks nor send any e-mails. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
91e76bb480
commit
c957262b5a
10
nightly.sh
10
nightly.sh
@ -64,8 +64,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
time $CMD "$@"
|
time $CMD "$@"
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
export mail=0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NEWCOMPOSE_ID=$(cat $TARGET_DIR/latest-Fedora-Rawhide/COMPOSE_ID)
|
NEWCOMPOSE_ID=$(cat $TARGET_DIR/latest-Fedora-Rawhide/COMPOSE_ID)
|
||||||
@ -116,12 +116,10 @@ send_fedmsg "${fedmsg_json_done}" ${DIST} complete
|
|||||||
|
|
||||||
# Tell everyone by email about the compose
|
# Tell everyone by email about the compose
|
||||||
SUBJECT='Fedora '$DIST' compose report: '$SHORTCOMPOSE_ID' changes'
|
SUBJECT='Fedora '$DIST' compose report: '$SHORTCOMPOSE_ID' changes'
|
||||||
if [ "$mail" = "0" ]; then
|
for tomail in $TOMAIL ; do
|
||||||
for tomail in $TOMAIL ; do
|
|
||||||
cat $TARGET_DIR/$NEWCOMPOSE_ID/logs/*verbose $DESTDIR/logs/depcheck | \
|
cat $TARGET_DIR/$NEWCOMPOSE_ID/logs/*verbose $DESTDIR/logs/depcheck | \
|
||||||
mutt -e "set from=\"$FROM\"" -e 'set envelope_from=yes' -s "$SUBJECT" $tomail
|
mutt -e "set from=\"$FROM\"" -e 'set envelope_from=yes' -s "$SUBJECT" $tomail
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
for koji in arm ppc s390
|
for koji in arm ppc s390
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user