From 9f318be95eefdddad0d0fee4cfd7b469711056ed Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Wed, 11 Oct 2017 18:53:20 +0200 Subject: [PATCH] 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 --- nightly-modular.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 {} \;