From 812e43849235507409880cdeba53707c3f22ddcc Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Tue, 29 Oct 2024 14:11:37 -0400 Subject: [PATCH] [CI] Stop gradle processes between tasks in packer cache --- .buildkite/packer_cache.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.buildkite/packer_cache.sh b/.buildkite/packer_cache.sh index 01e1ad5cd782..e4a80d439741 100755 --- a/.buildkite/packer_cache.sh +++ b/.buildkite/packer_cache.sh @@ -30,5 +30,7 @@ for branch in "${branches[@]}"; do export JAVA_HOME="$HOME/.java/$ES_BUILD_JAVA" "checkout/${branch}/gradlew" --project-dir "$CHECKOUT_DIR" --parallel -s resolveAllDependencies -Dorg.gradle.warning.mode=none -DisCI --max-workers=4 + "checkout/${branch}/gradlew" --stop + pkill -f '.*GradleDaemon.*' rm -rf "checkout/${branch}" done