mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-11 09:46:26 +08:00
Allow jenkins slave pod to remain active for a while (#5232)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
parent
08bb1b2ec3
commit
d17ed98fff
4
build/ci/jenkins/Jenkinsfile
vendored
4
build/ci/jenkins/Jenkinsfile
vendored
@ -31,7 +31,7 @@ pipeline {
|
|||||||
customWorkspace '/home/jenkins/agent/workspace'
|
customWorkspace '/home/jenkins/agent/workspace'
|
||||||
// We allow this pod to remain active for a while, later jobs can
|
// We allow this pod to remain active for a while, later jobs can
|
||||||
// reuse cache in previous created nodes.
|
// reuse cache in previous created nodes.
|
||||||
// idleMinutes 120
|
idleMinutes 120
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
@ -94,6 +94,8 @@ pipeline {
|
|||||||
dir("${env.ARTIFACTS}") {
|
dir("${env.ARTIFACTS}") {
|
||||||
sh "tar -zcvf artifacts-milvus-${MILVUS_SERVER_TYPE}-e2e-kind.tar.gz ./kind --remove-files || true"
|
sh "tar -zcvf artifacts-milvus-${MILVUS_SERVER_TYPE}-e2e-kind.tar.gz ./kind --remove-files || true"
|
||||||
archiveArtifacts artifacts: "artifacts-milvus-${MILVUS_SERVER_TYPE}-e2e-kind.tar.gz", allowEmptyArchive: true
|
archiveArtifacts artifacts: "artifacts-milvus-${MILVUS_SERVER_TYPE}-e2e-kind.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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user