From 12c038af0c08cfeb1d2e87b6474ffaf9bff7d6a1 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Fri, 11 Dec 2015 11:33:49 -0800 Subject: [PATCH] Fix workspace not empty on gce tests. We added a gcloud command earlier in e2e.sh which creates a .config folder in the workspace. Ignore it. --- hack/jenkins/e2e.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index 8fb7cf205d797..b308cd3d36489 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -1142,7 +1142,7 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the # Otherwise, we want a completely empty directory. if [[ "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; then rm -rf kubernetes* - elif [[ $(find . | wc -l) != 1 ]]; then + elif [[ $(find . -not -path './.config*' | wc -l) != 1 ]]; then echo $PWD not empty, bailing! find . exit 1