[skip ci] Turn off logs display for docker remove kind network (#6425)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/6356/head
quicksilver 2021-07-10 10:19:52 +08:00 committed by GitHub
parent 99ed122d11
commit 414bfe3c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@ pipeline {
}
archiveArtifacts artifacts: "**.tar.gz", allowEmptyArchive: true
sh 'docker rm -f \$(docker network inspect -f \'{{ range \$key, \$value := .Containers }}{{ printf "%s " \$key}}{{ end }}\' kind) || true'
sh 'docker network rm kind 2>&1 > /dev/null || true'
sh 'docker network rm kind > /dev/null 2>&1 || true'
}
}
}

View File

@ -111,7 +111,7 @@ pipeline {
}
archiveArtifacts artifacts: "**.tar.gz", allowEmptyArchive: true
sh 'docker rm -f \$(docker network inspect -f \'{{ range \$key, \$value := .Containers }}{{ printf "%s " \$key}}{{ end }}\' kind) || true'
sh 'docker network rm kind 2>&1 > /dev/null || true'
sh 'docker network rm kind > /dev/null 2>&1 || true'
}
}
}

View File

@ -128,7 +128,7 @@ function cleanup_kind_cluster() {
if [[ -z "${SKIP_CLEANUP:-}" ]]; then
echo "Cleaning up kind cluster"
kind delete cluster --name "${NAME}" -v9 || true
docker network rm kind 2>&1 > /dev/null || true
docker network rm kind > /dev/null 2>&1 || true
fi
}
@ -163,7 +163,7 @@ function setup_kind_cluster() {
if ! (kind delete cluster --name="${NAME}" -v9) > /dev/null; then
echo "No existing kind cluster with name ${NAME}. Continue..."
else
docker network rm kind 2>&1 > /dev/null || true
docker network rm kind > /dev/null 2>&1 || true
fi
# explicitly disable shellcheck since we actually want $NAME to expand now