From: Michael Smith Date: Wed, 29 Aug 2007 09:06:37 +0000 (+0000) Subject: Set up snapshot build to automatically send e-mail reports X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b2c20d45264a021f0d6c93d0bc9bf782ded6ff9;p=docbook-dsssl Set up snapshot build to automatically send e-mail reports containing entire log file and build-check output. --- diff --git a/releasetools/docbook-build b/releasetools/docbook-build index b349dc220..6bf968738 100755 --- a/releasetools/docbook-build +++ b/releasetools/docbook-build @@ -343,6 +343,25 @@ EOF ssh -l $SITEUSER $SITEHOST "(cd $SITEBASE; chmod 664 *.zip *.log; touch $DISTRO)" fi + # set up the e-mail message headers for buildbot message + cat <<- EOF > $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt +From: snapshot buildbot +To: Michael(tm) Smith +Subject: snapshot $REVISION + +EOF + + # copy the entire log file to the buildbot message + cat $LOGDIR/docbook-$DISTRO-$RELEASEVERSION.log.tmp >> $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt + echo >> $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt + echo "buildcheck output:" >> $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt + echo >> $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt + # run buildcheck and copy the output to the buildbot message + $DOCBOOK_SVN/buildtools/build-check $LOGDIR/docbook-$DISTRO-$RELEASEVERSION.log.tmp >> $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt + + # send the buildbot message + /usr/sbin/sendmail -f smith@sideshowbarker.net smith@sideshowbarker.net < $TMP/docbook-$DISTRO-$RELEASEVERSION-message.txt + rm -f $LOGDIR/docbook-$DISTRO-$RELEASEVERSION.log rm -f $TMP/docbook-$DISTRO-$RELEASEVERSION.lock