diff --git a/.ci/buildchain-config.yaml b/.ci/buildchain-config.yaml index 84c15584b4a..c286104dcd3 100644 --- a/.ci/buildchain-config.yaml +++ b/.ci/buildchain-config.yaml @@ -25,7 +25,7 @@ default: mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} after: current: | - docker system prune -f + bash -c "if [ -n \"$(docker images -f dangling=true -q)\" ]; then docker rmi $(docker images -f dangling=true -q); else echo 'No dangling images to remove.'; fi" build: - project: kiegroup/drools