aboutsummaryrefslogtreecommitdiff
path: root/dev/run-tests-jenkins
diff options
context:
space:
mode:
Diffstat (limited to 'dev/run-tests-jenkins')
-rwxr-xr-xdev/run-tests-jenkins18
1 files changed, 16 insertions, 2 deletions
diff --git a/dev/run-tests-jenkins b/dev/run-tests-jenkins
index 39cf54f781..3be78575e7 100755
--- a/dev/run-tests-jenkins
+++ b/dev/run-tests-jenkins
@@ -164,8 +164,9 @@ pr_message=""
current_pr_head="`git rev-parse HEAD`"
echo "HEAD: `git rev-parse HEAD`"
-echo "GHPRB: $ghprbActualCommit"
-echo "SHA1: $sha1"
+echo "\$ghprbActualCommit: $ghprbActualCommit"
+echo "\$sha1: $sha1"
+echo "\$ghprbPullTitle: $ghprbPullTitle"
# Run pull request tests
for t in "${PR_TESTS[@]}"; do
@@ -189,6 +190,19 @@ done
{
# Marks this build is a pull request build.
export AMP_JENKINS_PRB=true
+ if [[ $ghprbPullTitle == *"test-maven"* ]]; then
+ export AMPLAB_JENKINS_BUILD_TOOL="maven"
+ fi
+ if [[ $ghprbPullTitle == *"test-hadoop1.0"* ]]; then
+ export AMPLAB_JENKINS_BUILD_PROFILE="hadoop1.0"
+ elif [[ $ghprbPullTitle == *"test-hadoop2.0"* ]]; then
+ export AMPLAB_JENKINS_BUILD_PROFILE="hadoop2.0"
+ elif [[ $ghprbPullTitle == *"test-hadoop2.2"* ]]; then
+ export AMPLAB_JENKINS_BUILD_PROFILE="hadoop2.2"
+ elif [[ $ghprbPullTitle == *"test-hadoop2.3"* ]]; then
+ export AMPLAB_JENKINS_BUILD_PROFILE="hadoop2.3"
+ fi
+
timeout "${TESTS_TIMEOUT}" ./dev/run-tests
test_result="$?"