Adjust the directory structure for archived Logs (#5442)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/5412/head^2
quicksilver 2021-05-27 09:51:22 +08:00 committed by GitHub
parent 63399f5ccd
commit 198cc0dcc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ pipeline {
container('main') {
script {
dir("${env.ARTIFACTS}") {
sh "find ./kind -path '*/history/default_milvus-testing*' -type f | xargs tar -zcvf artifacts-milvus-${MILVUS_SERVER_TYPE}-e2e-logs.tar.gz --transform='s:^[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/::g' || true"
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 'docker rm -f \$(docker network inspect -f \'{{ range \$key, \$value := .Containers }}{{ printf "%s " \$key}}{{ end }}\' kind) || true'
sh 'docker network rm kind || true'