From 9f318be95eefdddad0d0fee4cfd7b469711056ed Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Oct 13 2017 10:46:13 +0000 Subject: Send email reports about bikeshed composes Note: depcheck logs are ignored for now. Details: https://pagure.io/releng/issue/7074 Signed-off-by: Tomas Mlcoch --- diff --git a/nightly-modular.sh b/nightly-modular.sh index 0ef6150..d6f66ff 100755 --- a/nightly-modular.sh +++ b/nightly-modular.sh @@ -95,5 +95,12 @@ send_fedmsg "${fedmsg_json_done}" ${DIST} rsync.complete # Tell everyone by fedmsg about the compose send_fedmsg "${fedmsg_json_done}" ${DIST} complete +# Tell everyone by email about the compose +SUBJECT='Fedora Modular '$DIST' compose report: '$SHORTCOMPOSE_ID' changes' +for tomail in $TOMAIL ; do + cat $TARGET_DIR/$NEWCOMPOSE_ID/logs/*verbose | \ + mutt -e "set from=\"$FROM\"" -e 'set envelope_from=yes' -s "$SUBJECT" $tomail +done + # Remove old composes older than 14 days find $TARGET_DIR/Fedora-Modular-Bikeshed* -xdev -depth -maxdepth 2 -mtime +14 -exec rm -rf {} \;