mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Ignore console-log.txt when checking for empty workspace.
This commit is contained in:
parent
114f6f76dc
commit
9bb83ce7cd
@ -1145,8 +1145,13 @@ 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 . -not -path './.config*' | wc -l) != 1 ]]; then
|
||||
echo $PWD not empty, bailing!
|
||||
# .config and its children are created by the gcloud call that we use to
|
||||
# get the GCE service account.
|
||||
# console-log.txt is created by Jenkins, but is usually not flushed out
|
||||
# this early in the script.
|
||||
elif [[ $(find . -not -path "./.config*" -not -name "console-log.txt" \
|
||||
| wc -l) != 1 ]]; then
|
||||
echo "${PWD} not empty, bailing!"
|
||||
find .
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user