Author: nickboldt
Date: 2011-04-28 15:59:18 -0400 (Thu, 28 Apr 2011)
New Revision: 30936
Modified:
branches/jbosstools-3.2.x/build/publish.sh
Log:
merge internal builds/staging/* rsync code from trunk to 32x branch
Modified: branches/jbosstools-3.2.x/build/publish.sh
===================================================================
--- branches/jbosstools-3.2.x/build/publish.sh 2011-04-28 19:57:31 UTC (rev 30935)
+++ branches/jbosstools-3.2.x/build/publish.sh 2011-04-28 19:59:18 UTC (rev 30936)
@@ -28,6 +28,9 @@
# for JBDS, use DESTINATION=/qa/services/http/binaries/RHDS
if [[ $DESTINATION == "" ]]; then
DESTINATION="tools@filemgmt.jboss.org:/downloads_htdocs/tools"; fi
+# internal destination mirror, for file:// access (instead of http://)
+if [[ $INTRNALDEST == "" ]]; then
INTRNALDEST="/home/hudson/static_build_env/jbds/"; fi
+
# cleanup from last time
rm -fr ${WORKSPACE}/results; mkdir -p ${STAGINGDIR}
@@ -253,6 +256,9 @@
#fi
fi
+ # and create/replace a snapshot dir outside Hudson which is file:// accessible
+ date; rsync -arzq --delete ${STAGINGDIR} $INTRNALDEST/builds/staging/
+
# and create/replace a snapshot dir w/ static URL
date; rsync -arzq --delete ${STAGINGDIR} $DESTINATION/builds/staging/
fi
@@ -276,6 +282,6 @@
# publish updated log
bl=${STAGINGDIR}/logs/BUILDLOG.txt
rm -f ${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}/
+date; rsync -arzq --delete ${STAGINGDIR}/logs $INTRNALDEST/builds/staging/${JOB_NAME}/