Repository: spark Updated Branches: refs/heads/master 7c7ce5452 -> 109732753
Set AMPLAB_JENKINS_BUILD_PROFILE. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/10973275 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/10973275 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/10973275 Branch: refs/heads/master Commit: 1097327538ec3870544f406775efcfe7722e48be Parents: 7c7ce54 Author: Reynold Xin <r...@apache.org> Authored: Wed Jul 30 14:08:24 2014 -0700 Committer: Reynold Xin <r...@apache.org> Committed: Wed Jul 30 14:08:24 2014 -0700 ---------------------------------------------------------------------- dev/run-tests | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/10973275/dev/run-tests ---------------------------------------------------------------------- diff --git a/dev/run-tests b/dev/run-tests index f2b523b..fb50fb3 100755 --- a/dev/run-tests +++ b/dev/run-tests @@ -21,6 +21,18 @@ FWDIR="$(cd `dirname $0`/..; pwd)" cd "$FWDIR" +if [ -n "$AMPLAB_JENKINS_BUILD_PROFILE" ]; then + if [ "$AMPLAB_JENKINS_BUILD_PROFILE" = "hadoop1.0" ]; then + export SBT_MAVEN_PROFILES="-Dhadoop.version=1.0.4" + elif [ "$AMPLAB_JENKINS_BUILD_PROFILE" = "hadoop2.0" ]; then + export SBT_MAVEN_PROFILES="-Dhadoop.version=2.0.0-mr1-cdh4.1.1" + elif [ "$AMPLAB_JENKINS_BUILD_PROFILE" = "hadoop2.2" ]; then + export SBT_MAVEN_PROFILES="-Pyarn -Dhadoop.version=2.2.0" + elif [ "$AMPLAB_JENKINS_BUILD_PROFILE" = "hadoop2.3" ]; then + export SBT_MAVEN_PROFILES="-Pyarn -Phadoop-2.3 -Dhadoop.version=2.3.0" + fi +fi + if [ -z "$SBT_MAVEN_PROFILES" ]; then export SBT_MAVEN_PROFILES="-Pyarn -Phadoop-2.3 -Dhadoop.version=2.3.0" fi