Author: nickboldt
Date: 2010-06-25 15:05:58 -0400 (Fri, 25 Jun 2010)
New Revision: 23052
Modified:
trunk/build/publish.sh
Log:
use sed instead of grep so that we always return 0
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2010-06-25 18:18:21 UTC (rev 23051)
+++ trunk/build/publish.sh 2010-06-25 19:05:58 UTC (rev 23052)
@@ -57,8 +57,8 @@
# get full build log and filter out Maven test failures
wget -q
http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/${BUILD_NUMBER}/console... -O
${WORKSPACE}/site/${JOB_NAME}/buildlog.txt
-cat ${WORKSPACE}/site/${JOB_NAME}/buildlog.txt | grep -A9 "<<< FAI" |
grep -A9 "LURE" > ${WORKSPACE}/site/${JOB_NAME}/fail_log.txt
-cat ${WORKSPACE}/site/${JOB_NAME}/buildlog.txt | grep -A9 "<<< ERR" |
grep -A9 "ROR" > ${WORKSPACE}/site/${JOB_NAME}/errorlog.txt
+sed -ne "/<<< FAI/,9 p" -ne "/LURE/,9 p"
${WORKSPACE}/site/${JOB_NAME}/buildlog.txt | uniq >
${WORKSPACE}/site/${JOB_NAME}/fail_log.txt
+sed -ne "/<<< ERR/,9 p" -ne "/ROR/,9 p"
${WORKSPACE}/site/${JOB_NAME}/buildlog.txt | uniq >
${WORKSPACE}/site/${JOB_NAME}/errorlog.txt
rsync -arzq ${WORKSPACE}/site/${JOB_NAME}/buildlog.txt $DESTINATION/${JOB_NAME}/
rsync -arzq ${WORKSPACE}/site/${JOB_NAME}/fail_log.txt $DESTINATION/${JOB_NAME}/
rsync -arzq ${WORKSPACE}/site/${JOB_NAME}/errorlog.txt $DESTINATION/${JOB_NAME}/