[jbosstools-commits] JBoss Tools SVN: r30333 - trunk/build.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Apr 5 14:29:04 EDT 2011


Author: nickboldt
Date: 2011-04-05 14:29:04 -0400 (Tue, 05 Apr 2011)
New Revision: 30333

Modified:
   trunk/build/publish.sh
Log:
publish to /home/hudson/static_build_env/jbds/builds/staging/ as well as to download.jboss.org so that Hudson jobs can source from local filesystem instead of over http (JBIDE-8657)

Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh	2011-04-05 18:22:55 UTC (rev 30332)
+++ trunk/build/publish.sh	2011-04-05 18:29:04 UTC (rev 30333)
@@ -28,6 +28,9 @@
 # for JBDS, use DESTINATION=/qa/services/http/binaries/RHDS
 if [[ $DESTINATION == "" ]]; then DESTINATION="tools at 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}
 
@@ -258,6 +261,9 @@
 
 		# and create/replace a snapshot dir w/ static URL
 		date; rsync -arzq --delete ${STAGINGDIR} $DESTINATION/builds/staging/
+
+		# and create/replace a snapshot dir outside Hudson which is file:// accessible
+		date; rsync -arzq --delete ${STAGINGDIR} $INTRNALDEST/builds/staging/
 	fi
 
 	# extra publish step for aggregate update sites ONLY
@@ -279,6 +285,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}/consoleText -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}/
 



More information about the jbosstools-commits mailing list