[jbosstools-commits] JBoss Tools SVN: r41862 - trunk/build/publish.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Jun 11 14:06:31 EDT 2012
Author: nickboldt
Date: 2012-06-11 14:06:30 -0400 (Mon, 11 Jun 2012)
New Revision: 41862
Modified:
trunk/build/publish/publish.sh
Log:
port changes from 33x to trunk re: pushd/popd, deprecated link to sources zip; JBDS-1992: add results page into installer/ folder
Modified: trunk/build/publish/publish.sh
===================================================================
--- trunk/build/publish/publish.sh 2012-06-11 15:09:34 UTC (rev 41861)
+++ trunk/build/publish/publish.sh 2012-06-11 18:06:30 UTC (rev 41862)
@@ -63,10 +63,9 @@
else
siteZip=${WORKSPACE}/sources/site/target/repository.zip
# JBIDE-10923
- currentDir=$(pwd)
- cd ${WORKSPACE}/sources/site/target/repository
+ pushd ${WORKSPACE}/sources/site/target/repository >/dev/null
zip -r $siteZip .
- cd $currentDir
+ popd >/dev/null
fi
z=$siteZip
fi
@@ -174,9 +173,10 @@
mkdir -p ${STAGINGDIR}/installer/
rsync -aq $z ${z}.MD5 ${STAGINGDIR}/installer/
# [fix for DEPRECATED PDE installer build] provide symlink so that the .product build can find the sources zip using a generic name, where SRCSNAME = ${JOB_NAME}-Sources-${ZIPSUFFIX}.zip
- #mkdir -p ${STAGINGDIR}/all; cd ${STAGINGDIR}/all
- #ln -s ../installer/${z} ${SRCSNAME}
- #ln -s ../installer/${z}.MD5 ${SRCSNAME}.MD5
+ #mkdir -p ${STAGINGDIR}/all; pushd ${STAGINGDIR}/all >/dev/null
+ #ln -s ../installer/${z##*/} ${SRCSNAME}
+ #ln -s ../installer/${z##*/}.MD5 ${SRCSNAME}.MD5
+ #popd >/dev/null
foundSourcesZip=1
done
if [[ $foundSourcesZip -eq 0 ]]; then
@@ -195,6 +195,12 @@
z=${STAGINGDIR}/all/${srczipname}; for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m > ${z}.MD5; fi; done
fi
+# JBDS-1992 create results page in installer/ folder, including update site zip, sources zip, and installers
+if [[ -d ${WORKSPACE}/sources/product/results/target ]]; then
+ mkdir -p ${STAGINGDIR}/installer/
+ rsync -aq ${WORKSPACE}/sources/product/results/target/* ${STAGINGDIR}/installer/
+fi
+
mkdir -p ${STAGINGDIR}/logs
# collect component zips from upstream aggregated build jobs
@@ -247,6 +253,7 @@
echo "" >> ${STAGINGDIR}/logs/${METAFILE}
# generate md5sums in a single file
+pushd ${STAGINGDIR} >/dev/null
md5sumsFile=${STAGINGDIR}/logs/md5sums.txt
echo "# Update Site Zips" > ${md5sumsFile}
echo "# ----------------" >> ${md5sumsFile}
@@ -256,6 +263,7 @@
echo "# -----------" >> ${md5sumsFile}
md5sum $(find . -iname "*source*.zip" | egrep -v "aggregate-Sources|nightly-Update") >> ${md5sumsFile}
echo " " >> ${md5sumsFile}
+popd >/dev/null
mkdir -p ${STAGINGDIR}/logs
More information about the jbosstools-commits
mailing list