[jbosstools-commits] JBoss Tools SVN: r22736 - trunk/build.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Jun 10 19:11:19 EDT 2010
Author: nickboldt
Date: 2010-06-10 19:11:19 -0400 (Thu, 10 Jun 2010)
New Revision: 22736
Modified:
trunk/build/publish.sh
Log:
publish update site instead of named zip
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2010-06-10 21:25:59 UTC (rev 22735)
+++ trunk/build/publish.sh 2010-06-10 23:11:19 UTC (rev 22736)
@@ -1,17 +1,20 @@
#!/bin/bash
# Hudson script used to publish Tycho-built p2 update sites
-# define target zip filename date and hudson build id marked for clarity and publication
-ZIPNAME=${JOB_NAME}-Update-H${BUILD_NUMBER}-${BUILD_ID}.zip
-
# define target zip filename for inclusion in uberbuilder's bucky aggregator
SNAPNAME=${JOB_NAME}-Update-SNAPSHOT.zip
rm -fr ${WORKSPACE}/site; mkdir -p ${WORKSPACE}/site/${JOB_NAME}
if [[ -f ${WORKSPACE}/sources/site/target/site.zip ]]; then
- # copy into workspace for archiving
- rsync -aq ${WORKSPACE}/sources/site/target/site.zip ${WORKSPACE}/site/${JOB_NAME}/${ZIPNAME}
- # copy into workspace for access by bucky aggregator
+ # note the job name, build number, and build ID of the latest snapshot zip
+ echo "JOB_NAME = ${JOB_NAME}" > ${WORKSPACE}/site/${JOB_NAME}/JOB_NAME.txt
+ echo "BUILD_NUMBER = ${BUILD_NUMBER}" > ${WORKSPACE}/site/${JOB_NAME}/BUILD_NUMBER.txt
+ echo "BUILD_ID = ${BUILD_ID}" > ${WORKSPACE}/site/${JOB_NAME}/BUILD_ID.txt
+
+ # unzip into workspace for publishing as unpacked site
+ unzip -q ${WORKSPACE}/sources/site/target/site.zip -d ${WORKSPACE}/site/${JOB_NAME}/
+
+ # copy into workspace for access by bucky aggregator (same name every time)
rsync -aq ${WORKSPACE}/sources/site/target/site.zip ${WORKSPACE}/site/${SNAPNAME}
fi
@@ -26,5 +29,6 @@
rsync -arzq --delete ${WORKSPACE}/site/${JOB_NAME} $DESTINATION/builds/nightly/3.2.helios/
fi
if [[ -f ${WORKSPACE}/site/${SNAPNAME} ]]; then
+ # publish snapshot zip
rsync -arzq --delete ${WORKSPACE}/site/${SNAPNAME} $DESTINATION/builds/nightly/3.2.helios/
fi
\ No newline at end of file
More information about the jbosstools-commits
mailing list