From 18e883486660e4454c430828d73789391217e057 Mon Sep 17 00:00:00 2001 From: Toshiya Kobayashi Date: Thu, 17 Oct 2024 11:55:23 +0900 Subject: [PATCH] [DO-NOT-MERGE][DROOLS-7638]"docker system prune -f" fails in GHA --- .ci/buildchain-config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.ci/buildchain-config.yaml b/.ci/buildchain-config.yaml index 84c15584b4a0..821188283b6c 100644 --- a/.ci/buildchain-config.yaml +++ b/.ci/buildchain-config.yaml @@ -25,7 +25,13 @@ default: mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} after: current: | - docker system prune -f + bash -c ' + if docker system df > /dev/null 2>&1; then + docker system prune -f + else + echo "Prune operation already in progress. Skipping this command." + fi + ' build: - project: kiegroup/drools