You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by gk...@apache.org on 2011/08/05 10:47:05 UTC

svn commit: r1154127 - /hadoop/nightly/buildMR-279Branch.sh

Author: gkesavan
Date: Fri Aug  5 08:47:05 2011
New Revision: 1154127

URL: http://svn.apache.org/viewvc?rev=1154127&view=rev
Log:
Update mr-279 build

Modified:
    hadoop/nightly/buildMR-279Branch.sh

Modified: hadoop/nightly/buildMR-279Branch.sh
URL: http://svn.apache.org/viewvc/hadoop/nightly/buildMR-279Branch.sh?rev=1154127&r1=1154126&r2=1154127&view=diff
==============================================================================
--- hadoop/nightly/buildMR-279Branch.sh (original)
+++ hadoop/nightly/buildMR-279Branch.sh Fri Aug  5 08:47:05 2011
@@ -1,18 +1,11 @@
 #!/bin/bash
 
-	export MAVEN_HOME=/homes/hudson/tools/maven/latest
+        source ${WORKSPACE}/nightly/hudsonEnv.sh       
 	export MAVEN_OPTS=-Xmx2048m
-	export ANT_HOME=/homes/hudson/tools/ant/latest
 	export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/usr/local/lib
 	export DATESTRING=`date +%y%m%d%H%M`
-	export FINDBUGS_HOME=/homes/hudson/tools/findbugs/latest
-	export FORREST_HOME=/homes/hudson/tools/forrest/latest
-	export JDK5_HOME=/homes/hudson/tools/java/latest1.5
-	export ECLIPSE_HOME=/homes/hudson/tools/eclipse/latest
-	export JAVA_HOME=/homes/hudson/tools/java/latest1.6
-
-
-	echo VERSION : $VERSION
+        export MRVERSION="0.279.0"
+	echo VERSION : ${VERSION}
 
 	MVNGOALS=""
 	MVNARGS=""
@@ -22,7 +15,7 @@
 
 	buildCommon() {
 	 cd $WORKSPACE/trunk/common
-	 echo "$ANT_HOME/bin/ant mvn-install -Dversion=${VERSION}"
+	 echo "$MAVEN_HOME/bin/mvn install -Dversion=${VERSION}"
 	 $ANT_HOME/bin/ant mvn-install -Dversion=${VERSION} -Dwagon-http.version=1.0-beta-2
 	 echo " $ANT_HOME/bin/ant clean tar findbugs -Dversion=${VERSION} -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=true 
 		 -Dcompile.native=true -Dfindbugs.home=$FINDBUGS_HOME -Dforrest.home=$FORREST_HOME -Declipse.home=$ECLIPSE_HOME -Djava5.home=${JDK5_HOME}"
@@ -51,27 +44,23 @@
 	buildMapreduce() {
 	 MVNGOALS="clean install assembly:assembly -Dcontainer-executor.conf.dir=/grid/0/gs/conf/current
 								-Dmaven.test.skip.exec=true -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION}
-								-Dhadoop-mapreduce.version=${VERSION} -Dyarn.version=${VERSION}"
+								-Dhadoop-mapreduce.version=${MRVERSION} -Dyarn.version=${MRVERSION}"
 	 cd $WORKSPACE/trunk/mapreduce
 	 $MAVEN_HOME/bin/mvn $MVNGOALS
-	 $ANT_HOME/bin/ant -Dversion=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION} -Dyarn.version=${VERSION} veryclean tools examples jar-test -Dresolvers=internal
-	 $ANT_HOME/bin/ant -Dversion=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION} -Dyarn.version=${VERSION} -f src/contrib/streaming/build.xml jar -Dresolvers=internal
-	 $ANT_HOME/bin/ant -Dversion=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION} -Dyarn.version=${VERSION} -f src/contrib/gridmix/build.xml jar -Dresolvers=internal
+	 $ANT_HOME/bin/ant -Dversion=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION} -Dyarn.version=${MRVERSION} veryclean tools examples jar-test -Dresolvers=internal
+	 $ANT_HOME/bin/ant -Dversion=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION} -Dyarn.version=${MRVERSION} -f src/contrib/streaming/build.xml jar -Dresolvers=internal
+	 $ANT_HOME/bin/ant -Dversion=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-hdfs.version=${VERSION} -Dyarn.version=${MRVERSION} -f src/contrib/gridmix/build.xml jar -Dresolvers=internal
 	 mv target/hadoop-mapreduce*.tar.gz build-artifacts
 	 cp build/*.jar build-artifacts
 	 cp build/contrib/gridmix/*.jar build-artifacts
 	 cp build/contrib/streaming/*.jar build-artifacts
 
-	 #MVNGOALS="clover2:setup test clover2:aggregate clover2:clover findbugs:findbugs -Dyarn.verion=${VERSION} \ 
-	 # -Dmaven.test.failure.ignore=true -Dhadoop-hdfs.version=${VERSION} -Dhadoop-common.version=${VERSION} \
+	 #MVNGOALS="clover2:setup test clover2:aggregate clover2:clover findbugs:findbugs -Dyarn.verion=${MRVERSION} \ 
+	 # -Dmaven.test.failure.ignore=true -Dhadoop-hdfs.version=${VERSION} -Dhadoop-common.version=${MRVERSION} \
 	 # -Dhadoop-mapreduce.version=${VERSION} -Dmaven.clover.licenseLocation=/homes/hudson/tools/clover/latest/lib/clover.license"
 
-	 $MAVEN_HOME/bin/mvn test -Dmaven.test.failure.ignore=true -Dhadoop-hdfs.version=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-mapreduce.version=${VERSION} 
+	 $MAVEN_HOME/bin/mvn test -Dmaven.test.failure.ignore=true -Dhadoop-hdfs.version=${VERSION} -Dhadoop-common.version=${VERSION} -Dhadoop-mapreduce.version=${MRVERSION} 
 	 cd $WORKSPACE
 	}
-	echo "Build and publish Common... "
-	buildCommon
-	echo "Build and publish Hdfs... "
-	buildHdfs
 	echo "Build and package Mapreduce."
 	buildMapreduce