Author: nigel
Date: Fri Jan 16 21:40:01 2009
New Revision: 735231

URL: http://svn.apache.org/viewvc?rev=735231&view=rev
Log:
more nightly build fixes for HADOOP-3921

Modified:
    hadoop/core/nightly/hudsonBuildHadoopNightly.sh

Modified: hadoop/core/nightly/hudsonBuildHadoopNightly.sh
URL: 
http://svn.apache.org/viewvc/hadoop/core/nightly/hudsonBuildHadoopNightly.sh?rev=735231&r1=735230&r2=735231&view=diff
==============================================================================
--- hadoop/core/nightly/hudsonBuildHadoopNightly.sh (original)
+++ hadoop/core/nightly/hudsonBuildHadoopNightly.sh Fri Jan 16 21:40:01 2009
@@ -7,30 +7,32 @@
 PYTHON_HOME=$5
 ECLIPSE_HOME=$6
 JAVA5_HOME=$7
+### BUILD_ID is set by Hudson
 
+### setup build environment
 set -x
-
 ulimit -n 1024
-
-### BUILD_ID is set by Hudson
-trunk=`pwd`/trunk
-
-cd $trunk
+export ANT_OPTS=-Xmx512m
+TRUNK=`pwd`/trunk
+cd $TRUNK
 
 ### run this first before instrumenting classes
 $ANT_HOME/bin/ant -Dversion=$BUILD_ID -Declipse.home=$ECLIPSE_HOME 
-Dfindbugs.home=$FINDBUGS_HOME -Djava5.home=$JAVA5_HOME 
-Dforrest.home=$FORREST_HOME clean docs tar findbugs
+
+### exit early if previous build fails
 RESULT=$?
 if [ $RESULT != 0 ] ; then
   echo "Build Failed: remaining tests not run"
   exit $RESULT
 fi
-mv build/*.tar.gz $trunk
-mv build/test/findbugs $trunk
-mv build/docs/api $trunk
+
+### move build artifacts from previous build so they don't get clobbered by 
next build
+mv build/*.tar.gz $TRUNK
+mv build/test/findbugs $TRUNK
+mv build/docs/api $TRUNK
 
 ### clean workspace
 $ANT_HOME/bin/ant clean
 
 ### run checkstyle and tests with clover
-export ANT_OPTS=-Xmx256m
 $ANT_HOME/bin/ant -Dversion=$BUILD_ID -Drun.clover=true 
-Dclover.home=$CLOVER_HOME -Dpython.home=$PYTHON_HOME 
-Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes checkstyle 
create-c++-configure test generate-clover-reports


Reply via email to