Author: nickboldt
Date: 2010-06-25 11:58:48 -0400 (Fri, 25 Jun 2010)
New Revision: 23045
Modified:
trunk/build/publish.sh
Log:
move error/failure logging to end of publish step
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2010-06-25 15:28:36 UTC (rev 23044)
+++ trunk/build/publish.sh 2010-06-25 15:58:48 UTC (rev 23045)
@@ -9,10 +9,6 @@
# cleanup from last time
rm -fr ${WORKSPACE}/site; mkdir -p ${WORKSPACE}/site/${JOB_NAME}
-# get full build log and filter out Maven test failures
-wget
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 "<<<
FAILURE" | egrep -v ".+at (sun.|java.).+" >
${WORKSPACE}/site/${JOB_NAME}/errorlog.txt
-
for z in ${WORKSPACE}/sources/site/target/site.zip
${WORKSPACE}/sources/site/target/site_assembly.zip; do
if [[ -f $z ]]; then
#echo "$z ..."
@@ -58,3 +54,11 @@
# publish snapshot zip
rsync -arzq --delete ${WORKSPACE}/site/${SNAPNAME} $DESTINATION/
fi
+
+# 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" | egrep -v ".+at (sun.|java.).+" >
${WORKSPACE}/site/${JOB_NAME}/fail_log.txt
+cat ${WORKSPACE}/site/${JOB_NAME}/buildlog.txt | grep -A9 "<<< ERR" |
grep -A9 "ROR" | egrep -v ".+at (sun.|java.).+" >
${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}/