Fix extract log files bug (#5471)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/5464/head
quicksilver 2021-05-28 11:27:30 +08:00 committed by GitHub
parent b1a9aea6a6
commit ca49e1a7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ pipeline {
dir("${env.ARTIFACTS}") {
sh "find ./kind -path '*/history/*' -type f | xargs tar -zcvf artifacts-milvus-${MILVUS_SERVER_TYPE}-e2e-logs.tar.gz --transform='s:^[^/]*/[^/]*/[^/]*/[^/]*/::g' || true"
archiveArtifacts artifacts: "**.tar.gz", allowEmptyArchive: true
sh 'rm -rf ./kind'
sh 'docker rm -f \$(docker network inspect -f \'{{ range \$key, \$value := .Containers }}{{ printf "%s " \$key}}{{ end }}\' kind) || true'
sh 'docker network rm kind || true'
}