Apache Solr open-source search software
Add clean to cherrypick.sh before runnign (precommit) check (#4238)
Jan Høydahlec51d13bc148
diff --git a/dev-tools/scripts/cherrypick.sh b/dev-tools/scripts/cherrypick.shindex 692c2cc12f6..0696d8cbd8a 100755--- a/dev-tools/scripts/cherrypick.sh+++ b/dev-tools/scripts/cherrypick.sh@@ -181,7 +181,7 @@ for BRANCH in "${BRANCHES[@]}"; doif [[ "$PRECOMMIT" ]] || [[ "$TEST" ]]; thenLOG "INFO" "Testing the cherry-pick on $BRANCH by running 'gradlew check ${TESTARG}'"# shellcheck disable=SC2086- ./gradlew check -q $TESTARG -Pvalidation.errorprone=true+ ./gradlew clean check -q $TESTARG -Pvalidation.errorprone=trueif [ $? -gt 0 ]; thenLOG "WARN" "Tests failed. Please fix and push manually"exit 2