Author: nickboldt
Date: 2010-10-04 16:24:33 -0400 (Mon, 04 Oct 2010)
New Revision: 25471
Modified:
trunk/build/publishComponentZipToStaging.sh
Log:
support multiple branches of published component zips
Modified: trunk/build/publishComponentZipToStaging.sh
===================================================================
--- trunk/build/publishComponentZipToStaging.sh 2010-10-04 19:59:19 UTC (rev 25470)
+++ trunk/build/publishComponentZipToStaging.sh 2010-10-04 20:24:33 UTC (rev 25471)
@@ -3,8 +3,8 @@
if [[ $1 ]]; then
pattern="$1"
else
- echo "Must run from Hudson or manually specify job name"
- echo "(for offline testing), eg., $0 \"drools|teiid|usage|jbpm\"
jbosstools-3.2.0.Beta2.aggregate"
+ echo "Must run from Hudson or manually specify pattern"
+ echo "eg., $0 \"drools|teiid|usage|jbpm\""
exit 1
fi
@@ -16,12 +16,15 @@
JOBNAMEREDUX=${JOB_NAME/-publish}
else
echo "Must run from Hudson or manually specify job name"
- echo "(for offline testing), eg., $0 jbosstools-teiid-designer"
+ echo "(for offline testing), eg., $0 \"drools|teiid|usage|jbpm\"
jbosstools-3.2.0.Beta2.aggregate"
exit 1
fi
if [[ $DESTINATION == "" ]]; then
DESTINATION="tools@filemgmt.jboss.org:/downloads_htdocs/tools"; fi
+# eg., extract 3.2.0.Beta2 from jbosstools-3.2.0.Beta2.aggregate or
jbosstools-3.2.0.Beta2.aggregate-publish
+BRANCH=${JOBNAMEREDUX/.aggregate}; BRANCH=${BRANCH/jbosstools-}; #echo $BRANCH
+
# get zip names from zip.list.txt
paths=$(wget -q
http://download.jboss.org/jbosstools/builds/staging/${JOBNAMEREDUX}/logs/... -O -
| egrep -- "-Update-" | egrep "${pattern}" | sed
"s#,\\\\##");
@@ -35,5 +38,5 @@
#echo "Publish ${path} as ${targetZip}"
# to test locally, may need to use --protocol=29 and -P instead of -q
- date; rsync -arzq --rsh=ssh ${targetZip} ${DESTINATION}/updates/staging/
+ date; rsync -arzq --rsh=ssh ${targetZip} ${DESTINATION}/updates/staging/$BRANCH/
done
\ No newline at end of file