diff --git a/dev-support/jenkins_precommit_github_yetus.sh b/dev-support/jenkins_precommit_github_yetus.sh index 1c489d6f28bb..8f8edaa661ee 100755 --- a/dev-support/jenkins_precommit_github_yetus.sh +++ b/dev-support/jenkins_precommit_github_yetus.sh @@ -129,7 +129,7 @@ YETUS_ARGS+=("--skip-dirs=dev-support") if [[ -n "${HADOOP_PROFILE}" ]]; then # Master has only Hadoop3 support. We don't need to activate any profile. # The Jenkinsfile should not attempt to run any Hadoop2 tests. - if [[ "${BRANCH_NAME}" =~ branch-2* ]]; then + if [[ "${CHANGE_TARGET}" =~ branch-2* ]]; then YETUS_ARGS+=("--hadoop-profile=${HADOOP_PROFILE}") fi fi