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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Jun 22 12:33:23 EDT 2010


Author: nickboldt
Date: 2010-06-22 12:33:22 -0400 (Tue, 22 Jun 2010)
New Revision: 22930

Modified:
   trunk/build/publish.sh
Log:
publish component site*.zips too

Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh	2010-06-22 14:06:51 UTC (rev 22929)
+++ trunk/build/publish.sh	2010-06-22 16:33:22 UTC (rev 22930)
@@ -1,6 +1,8 @@
 #!/bin/bash
 # Hudson script used to publish Tycho-built p2 update sites
 
+# NOTE: sources MUST be checked out into ${WORKSPACE}/sources 
+
 # define target zip filename for inclusion in uberbuilder's bucky aggregator
 SNAPNAME=${JOB_NAME}-Update-SNAPSHOT.zip
 
@@ -21,6 +23,19 @@
 	fi
 done
 
+# if component zips exist, copy them too
+for z in $(find ${WORKSPACE}/sources/*/site/target -type f -name "site*.zip"); do 
+	if [[ -f $z ]]; then
+		y=${z%%/site/target/*}; y=${y##*/}
+		echo "[$y] $z ..."
+		# unzip into workspace for publishing as unpacked site
+		mkdir -p ${WORKSPACE}/site/${JOB_NAME}/$y
+		unzip -u -o -q -d ${WORKSPACE}/site/${JOB_NAME}/$y $z
+		# copy into workspace for access by bucky aggregator (same name every time)
+		rsync -aq $z ${WORKSPACE}/site/${JOB_NAME}/${y}-Update-SNAPSHOT.zip
+	fi
+done
+
 # if zips exist produced & renamed by ant script, copy them too
 for z in $(find ${WORKSPACE} -maxdepth 5 -mindepth 3 -name "*Update*.zip"); do 
 	echo "$z ..."



More information about the jbosstools-commits mailing list