hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject svn commit: r1037118 - in /hadoop/nightly: commitBuild.sh hudsonEnv.sh
Date Sat, 20 Nov 2010 06:17:03 GMT
Author: nigel
Date: Sat Nov 20 06:17:02 2010
New Revision: 1037118

URL: http://svn.apache.org/viewvc?rev=1037118&view=rev
Log:
Add some comments to commitBuild.sh and put artifacts in a single directory that can be cleaned
up.

Modified:
    hadoop/nightly/commitBuild.sh
    hadoop/nightly/hudsonEnv.sh

Modified: hadoop/nightly/commitBuild.sh
URL: http://svn.apache.org/viewvc/hadoop/nightly/commitBuild.sh?rev=1037118&r1=1037117&r2=1037118&view=diff
==============================================================================
--- hadoop/nightly/commitBuild.sh (original)
+++ hadoop/nightly/commitBuild.sh Sat Nov 20 06:17:02 2010
@@ -2,27 +2,45 @@
 
 source ${WORKSPACE}/nightly/hudsonEnv.sh
 
+printHeader () {
+  echo ""
+  echo ""
+  echo "======================================================================"
+  echo "======================================================================"
+  echo $1
+  echo "======================================================================"
+  echo "======================================================================"
+  echo ""
+  echo ""
+}
+
 regularBuild () {
-cd ${TRUNK}
-${ANT_HOME}/bin/ant ${BUILD_TARGETS} ${BUILD_FLAGS} ${BUILD_ARGS}
+  printHeader "BUILD: ant ${BUILD_TARGETS} ${BUILD_FLAGS} ${BUILD_ARGS}"
+  cd ${TRUNK}
+  ${ANT_HOME}/bin/ant ${BUILD_TARGETS} ${BUILD_FLAGS} ${BUILD_ARGS}
 }
 
 analysisBuild () {
-cd ${TRUNK}
-${ANT_HOME}/bin/ant ${ANALYSIS_TARGETS} ${BUILD_FLAGS} ${BUILD_ARGS}
+  printHeader "ANALYSIS: ant ${ANALYSIS_TARGETS} ${BUILD_FLAGS} ${BUILD_ARGS}"
+  cd ${TRUNK}
+  ${ANT_HOME}/bin/ant ${ANALYSIS_TARGETS} ${BUILD_FLAGS} ${BUILD_ARGS}
 }
 
 moveArtifacts () {
-cd ${TRUNK}
-mv build/*.tar.tgz ${TRUNK}
-mv build/*.jar $TRUNK
-mv build/test/findbugs $TRUNK
-mv build/docs/api $TRUNK
+  printHeader "STORE: saving artifacts"
+  cd ${TRUNK}
+  rm -rf artifacts
+  mkdir artifacts
+  mv build/*.tar.tgz ${TRUNK}/artifacts/
+  mv build/*.jar ${TRUNK}/artifacts/
+  mv build/test/findbugs ${TRUNK}/artifacts/
+  mv build/docs/api ${TRUNK}/artifacts/
 }
 
 antClean () {
-cd ${TRUNK}
-${ANT_HOME}/bin/ant clean 
+  printHeader "CLEAN: cleaning workspace"
+  cd ${TRUNK}
+  ${ANT_HOME}/bin/ant clean 
 }
 
 antClean

Modified: hadoop/nightly/hudsonEnv.sh
URL: http://svn.apache.org/viewvc/hadoop/nightly/hudsonEnv.sh?rev=1037118&r1=1037117&r2=1037118&view=diff
==============================================================================
--- hadoop/nightly/hudsonEnv.sh (original)
+++ hadoop/nightly/hudsonEnv.sh Sat Nov 20 06:17:02 2010
@@ -6,7 +6,7 @@ export ANT_HOME=/homes/hudson/tools/ant/
 export XERCES_HOME=/homes/hudson/tools/xerces/c/latest
 export ECLIPSE_HOME=/homes/gkesavan/tools/eclipse/latest
 export FORREST_HOME=/homes/gkesavan/tools/forrest/latest
-export JAVA5_HOME=//homes/hudson/tools/java/latest1.5
+export JAVA5_HOME=/homes/hudson/tools/java/latest1.5
 export FINDBUGS_HOME=/homes/gkesavan/tools/findbugs/latest
 export CLOVER_HOME=/homes/hudson/tools/clover/latest
 export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:



Mime
View raw message