[jbosstools-commits] JBoss Tools SVN: r41937 - branches/jbosstools-3.3.x/build/publish.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Wed Jun 13 12:04:36 EDT 2012
Author: nickboldt
Date: 2012-06-13 12:04:35 -0400 (Wed, 13 Jun 2012)
New Revision: 41937
Modified:
branches/jbosstools-3.3.x/build/publish/publish.sh
Log:
better check for when/where to run this script -- results/pom.xml and results/build.xml must exist
Modified: branches/jbosstools-3.3.x/build/publish/publish.sh
===================================================================
--- branches/jbosstools-3.3.x/build/publish/publish.sh 2012-06-13 15:11:59 UTC (rev 41936)
+++ branches/jbosstools-3.3.x/build/publish/publish.sh 2012-06-13 16:04:35 UTC (rev 41937)
@@ -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