From 98572e56ac6c079e6657d699e8185c97011d4951 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Thu, 27 Jun 2024 17:32:20 +0800 Subject: [PATCH] HBASE-28693 Addendum add hadoop 3.0 profile for branch-2.x --- dev-support/flaky-tests/run-flaky-tests.Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile index f8b49f9f5c9c..ff5399549092 100644 --- a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile +++ b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile @@ -54,6 +54,10 @@ pipeline { mvn_args=("${mvn_args[@]}" -X) set -x fi + # need to build against hadoop 3.0 profile for branch-2 when using jdk 11+ + if [[ "${BRANCH_NAME}" == *"branch-2"* ]]; then + mvn_args=("${mvn_args[@]}" -Dhadoop.profile=3.0) + fi curl "${curl_args[@]}" -o includes.txt "${JENKINS_URL}/job/HBase-Find-Flaky-Tests/job/${BRANCH_NAME}/lastSuccessfulBuild/artifact/output/includes" if [ -s includes.txt ]; then rm -rf local-repository/org/apache/hbase