mirror of https://github.com/milvus-io/milvus.git
[skip ci] Turn off logs display for docker remove kind network (#6425)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>pull/6356/head
parent
99ed122d11
commit
414bfe3c2d
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue