From da997384a4303aceff993b84e604c617608f836e Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Thu, 10 Nov 2022 13:27:58 +0100 Subject: [PATCH] HBASE-27477 Tweak hbase-vote.sh to support hbase-thirdparty With a small change, the hbase-vote.sh script can be used to verify release candidates produced from the hbase-thirdparty repository. Probably more could be done that is specific to this project's release artifacts, but this minor change enables the basics. Signed-off-by: Duo Zhang --- dev-support/hbase-vote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-support/hbase-vote.sh b/dev-support/hbase-vote.sh index 11267757b25..14286dca8ad 100755 --- a/dev-support/hbase-vote.sh +++ b/dev-support/hbase-vote.sh @@ -159,7 +159,7 @@ function build_from_source() { function run_tests() { rm -f "${OUTPUT_PATH_PREFIX}"_run_tests - mvn package "${MVN_PROFILES[@]}" "${MVN_PROPERTIES[@]}" -Dsurefire.rerunFailingTestsCount=3 2>&1 | tee "${OUTPUT_PATH_PREFIX}"_run_tests && UNIT_TEST_PASSED=1 + mvn clean package "${MVN_PROFILES[@]}" "${MVN_PROPERTIES[@]}" -Dsurefire.rerunFailingTestsCount=3 2>&1 | tee "${OUTPUT_PATH_PREFIX}"_run_tests && UNIT_TEST_PASSED=1 } function execute() { @@ -175,7 +175,7 @@ function print_when_exit() { * Built from source (${JAVA_VERSION}): $( ((BUILD_FROM_SOURCE_PASSED)) && echo "ok" || echo "failed" ) - mvn clean install ${MVN_PROPERTIES[@]} -DskipTests * Unit tests pass (${JAVA_VERSION}): $( ((UNIT_TEST_PASSED)) && echo "ok" || echo "failed" ) - - mvn package ${MVN_PROFILES[@]} ${MVN_PROPERTIES[@]} -Dsurefire.rerunFailingTestsCount=3 + - mvn clean package ${MVN_PROFILES[@]} ${MVN_PROPERTIES[@]} -Dsurefire.rerunFailingTestsCount=3 __EOF if ((CHECKSUM_PASSED)) && ((SIGNATURE_PASSED)) && ((RAT_CHECK_PASSED)) && ((BUILD_FROM_SOURCE_PASSED)) && ((UNIT_TEST_PASSED)) ; then exit 0