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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Jun 13 12:04:49 EDT 2012


Author: nickboldt
Date: 2012-06-13 12:04:48 -0400 (Wed, 13 Jun 2012)
New Revision: 41938

Modified:
   trunk/build/publish/publish.sh
Log:
better check for when/where to run this script -- results/pom.xml and results/build.xml must exist

Modified: trunk/build/publish/publish.sh
===================================================================
--- trunk/build/publish/publish.sh	2012-06-13 16:04:35 UTC (rev 41937)
+++ trunk/build/publish/publish.sh	2012-06-13 16:04:48 UTC (rev 41938)
@@ -268,7 +268,7 @@
 mkdir -p ${STAGINGDIR}/logs
 
 # generate results page for an aggregate build only
-if [[ ${JOB_NAME/.aggregate} != ${JOB_NAME} ]] && [[ -d ${WORKSPACE}/sources/results ]]; then
+if [[ ${JOB_NAME/.aggregate} != ${JOB_NAME} ]] && [[ -f ${WORKSPACE}/sources/results/pom.xml ]] && [[ -f ${WORKSPACE}/sources/results/build.xml ]]; then
 	pushd ${WORKSPACE}/sources/results >/dev/null
 	export JAVA_HOME=$(find /qa/tools/opt -maxdepth 1 -mindepth 1 -type d -name "jdk1.6.0_*" | sort | tail -1)
 	export M2_HOME=$(find /qa/tools/opt -maxdepth 1 -mindepth 1 -type d -name "apache-maven-3.0.*" | sort | tail -1)



More information about the jbosstools-commits mailing list