writes a .build-ok stamp when build completes -- stores end of log into .broken
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Wed, 4 Jul 2007 14:04:22 +0000 (14:04 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Wed, 4 Jul 2007 14:04:22 +0000 (14:04 +0000)
scripts/nightly-build.sh

index 1bb5a5c..9715a1b 100755 (executable)
@@ -32,7 +32,7 @@ EOF
 # Notify recipient of failure or success, manage various stamps 
 function failure() {
     set -x
-    touch ${BUILD}.broken
+    (echo -n "============================== $COMMAND: failure at" ; date ; tail -c 20k ${BUILD}/log-build.txt) >> ${BUILD}.broken
     if [ -n "$MAILTO" ] ; then
        tail -c 8k ${BUILD}/log-build.txt | mail -s "Failures for ${BUILD}" $MAILTO
     fi
@@ -208,6 +208,7 @@ function main () {
        
        if [ -n "$DO_TEST" ] ; then 
            runtest ${BUILD} >> ${BUILD}/log-build.txt 2>&1 
+           touch ${BUILD}.build-ok
        fi
        
        success >> ${BUILD}/log-build.txt 2>&1