From 00d3c6d7ac3c410fe2a9babb78468bdfbdc7c4b8 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Tue, 22 Dec 2020 21:30:23 -0800 Subject: [PATCH] add back clean up --- hack/jenkins/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/jenkins/common.sh b/hack/jenkins/common.sh index 133332d979..07673308a0 100755 --- a/hack/jenkins/common.sh +++ b/hack/jenkins/common.sh @@ -138,6 +138,9 @@ for entry in $(ls ${TEST_ROOT}); do for kconfig in $(find ${test_path} -name kubeconfig -type f); do sudo rm -f "${kconfig}" done + + ## ultimate shotgun clean up docker after we tried all + docker rm -f -v $(docker ps -aq) >/dev/null 2>&1 || true # Be very specific to avoid accidentally deleting other items, like wildcards or devices if [[ -d "${test_path}" ]]; then