Author: nickboldt
Date: 2011-01-24 10:22:24 -0500 (Mon, 24 Jan 2011)
New Revision: 28556
Modified:
trunk/build/publish.sh
Log:
make wget checks for build log and SVN_REVISION more robust and less abortive
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2011-01-24 15:21:18 UTC (rev 28555)
+++ trunk/build/publish.sh 2011-01-24 15:22:24 UTC (rev 28556)
@@ -50,14 +50,15 @@
# note the job name, build number, SVN rev, and build ID of the latest snapshot zip
mkdir -p ${STAGINGDIR}/logs
bl=${STAGINGDIR}/logs/BUILDLOG.txt
-wget -q
http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/${BUILD_NUMBER}/console... -O
${bl}
+wget -q
http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/${BUILD_NUMBER}/console... -O
${bl} --timeout=900 --wait=10 --random-wait --tries=10 --retry-connrefused
--no-check-certificate
# JBDS-1361 - fetch XML and then sed it into plain text
rl=${STAGINGDIR}/logs/SVN_REVISION
rm -f ${rl}.txt ${rl}.xml
-wget -q --no-clobber -O ${rl}.xml
"http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/api/xml?wrapper=changeSet&depth=1&xpath=//build[1]/changeSet/revision"
-sed -e
"s#<module>\(http[^<>]\+\)</module><revision>\([0-9]\+\)</revision>#\1\@\2\n#g"
${rl}.xml | sed -e "s#<[^<>]\+>##g" > ${rl}.txt
+wget -q --no-clobber -O ${rl}.xml
"http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/api/xml?wrapper=changeSet&depth=1&xpath=//build[1]/changeSet/revision"
--timeout=900 --wait=10 --random-wait --tries=10 --retry-connrefused
--no-check-certificate
+sed -e
"s#<module>\(http[^<>]\+\)</module><revision>\([0-9]\+\)</revision>#\1\@\2\n#g"
${rl}.xml | sed -e "s#<[^<>]\+>##g" > ${rl}.txt
+
METAFILE="${BUILD_ID}-H${BUILD_NUMBER}.txt"
touch ${STAGINGDIR}/logs/${METAFILE}
METAFILE=build.properties
@@ -274,6 +275,7 @@
# publish updated log
bl=${STAGINGDIR}/logs/BUILDLOG.txt
-wget -q
http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/${BUILD_NUMBER}/console... -O
${bl}
+wget -q
http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/${BUILD_NUMBER}/console... -O
${bl} --timeout=900 --wait=10 --random-wait --tries=10 --retry-connrefused
--no-check-certificate
+
date; rsync -arzq --delete ${STAGINGDIR}/logs $DESTINATION/builds/staging/${JOB_NAME}/