You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/07/30 23:08:37 UTC
git commit: Set AMPLAB_JENKINS_BUILD_PROFILE.
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 <rx...@apache.org>
Authored: Wed Jul 30 14:08:24 2014 -0700
Committer: Reynold Xin <rx...@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