Author: nickboldt
Date: 2011-01-19 23:19:02 -0500 (Wed, 19 Jan 2011)
New Revision: 28423
Modified:
trunk/build/publish.sh
Log:
use more restrictive xpath query when selecting modules + revisions
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2011-01-20 04:02:26 UTC (rev 28422)
+++ trunk/build/publish.sh 2011-01-20 04:19:02 UTC (rev 28423)
@@ -55,9 +55,8 @@
# JBDS-1361 - fetch XML and then sed it into plain text
rl=${STAGINGDIR}/logs/SVN_REVISION
rm -f ${rl}.txt ${rl}.xml
-wget -q --no-clobber -O ${rl}.xml
"http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/api/xml?depth=1&xpath=//build[1]/changeSet"
-sed -e
"s#<module>\(http[^<>]\+\)</module><revision>\([0-9]\+\)</revision>#\1\@\2\n#g"
${rl}.xml | \
- sed -e "s#<kind>\([^<>]\+\)</kind>#\1\n#g" | sed -e
"s#<[^<>]\+>##g" > ${rl}.txt
+wget -q --no-clobber -O ${rl}.xml
"http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/api/xml?wrapper=changeSet&depth=1&xpath=//build[1]/changeSet/revision"
+sed -e
"s#<module>\(http[^<>]\+\)</module><revision>\([0-9]\+\)</revision>#\1\@\2\n#g"
${rl}.xml | sed -e "s#<[^<>]\+>##g" > ${rl}.txt
METAFILE="${BUILD_ID}-H${BUILD_NUMBER}.txt"
if [[ ${SVN_REVISION} ]]; then
Show replies by date