From d17ed98fff46361bb12c8e304e0941be75e822bf Mon Sep 17 00:00:00 2001 From: quicksilver Date: Fri, 14 May 2021 22:09:40 +0800 Subject: [PATCH] Allow jenkins slave pod to remain active for a while (#5232) Signed-off-by: quicksilver --- build/ci/jenkins/Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/ci/jenkins/Jenkinsfile b/build/ci/jenkins/Jenkinsfile index 95a6c12bba..1f9ed8f13a 100644 --- a/build/ci/jenkins/Jenkinsfile +++ b/build/ci/jenkins/Jenkinsfile @@ -31,7 +31,7 @@ pipeline { customWorkspace '/home/jenkins/agent/workspace' // We allow this pod to remain active for a while, later jobs can // reuse cache in previous created nodes. - // idleMinutes 120 + idleMinutes 120 } } environment { @@ -94,6 +94,8 @@ pipeline { dir("${env.ARTIFACTS}") { 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 + sh 'docker rm -f \$(docker network inspect -f \'{{ range \$key, \$value := .Containers }}{{ printf "%s " \$key}}{{ end }}\' kind) || true' + sh 'docker network rm kind || true' } } }