Author: nickboldt
Date: 2010-01-28 02:05:18 -0500 (Thu, 28 Jan 2010)
New Revision: 19975
Modified:
trunk/common/releng/hudson/run.sh
Log:
check for missing requirements - cvs, svn, javac, vncserver, Xvfb, Xvnc
Modified: trunk/common/releng/hudson/run.sh
===================================================================
--- trunk/common/releng/hudson/run.sh 2010-01-28 06:53:19 UTC (rev 19974)
+++ trunk/common/releng/hudson/run.sh 2010-01-28 07:05:18 UTC (rev 19975)
@@ -29,6 +29,35 @@
export ANT_HOME=/opt/apache-ant-1.7.1
fi
+# check for required platform stuff
+missingRequirements=""
+for f in cvs svn javac; do
+ check=$(whereis $f);
+ if [[ $check == "$f:" ]]; then
+ missingRequirements="$missingRequirements $f"
+ else
+ echo "Found $check"
+ fi
+done
+if [[ $missingRequirements ]]; then
+ echo "ERROR: You must install the following tools for this build to proceed:"
+ echo " $missingRequirements"
+ exit 1;
+fi
+missingRequirements=""
+for f in vncserver Xvfb Xvnc; do
+ check=$(whereis $f);
+ if [[ $check == "$f:" ]]; then
+ missingRequirements="$missingRequirements $f"
+ else
+ echo "Found $check"
+ fi
+done
+if [[ $missingRequirements ]]; then
+ echo "WARNING: You may require 1 or more of the following tools for this build to
proceed:"
+ echo " $missingRequirements"
+fi
+
# cache of downloaded requirements and other binaries
downloadsDir="${WORKSPACE}/downloads"; if [[ ! -d $downloadsDir ]]; then mkdir
-p $downloadsDir; fi
Show replies by date