change the way the success/broken status is shown : touch ${BUILD}.ok or .broken
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Wed, 18 Apr 2007 13:52:07 +0000 (13:52 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Wed, 18 Apr 2007 13:52:07 +0000 (13:52 +0000)
scripts/nightly-build.sh

index cdca2b7..2a617ee 100755 (executable)
@@ -26,6 +26,7 @@ EOF
 
 # Notify recipient of failure
 function failure() {
+  touch ${BUILD}.broken
   if [ -n "$MAILTO" ] ; then
     tail -c 8k ${BUILD}/log-build.txt | mail -s "Failures for ${BUILD}" $MAILTO
   fi
@@ -33,7 +34,7 @@ function failure() {
 }
 
 function success () {
-  touch ${BUILD}/log-success.stamp
+  touch ${BUILD}.ok
   if [ -n "$MAILTO" ] ; then
     (echo "http://build.one-lab.org/$DISTRO/$BASE" ; echo "Completed on $(date)" ) | mail -s "Successfull build in ${BUILD}" $MAILTO
   fi