From 1c7245a045d195b7b0a30b046790266088718ea9 Mon Sep 17 00:00:00 2001 From: Yellow Shine Date: Wed, 14 Aug 2024 17:50:14 +0800 Subject: [PATCH] archive Signed-off-by: Yellow Shine --- ci/jenkins/PR-for-go-sdk.groovy | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/ci/jenkins/PR-for-go-sdk.groovy b/ci/jenkins/PR-for-go-sdk.groovy index ffa9fd379d536..437376d1fcc67 100644 --- a/ci/jenkins/PR-for-go-sdk.groovy +++ b/ci/jenkins/PR-for-go-sdk.groovy @@ -1,4 +1,4 @@ -@Library('jenkins-shared-library@v0.6.9') _ +@Library('jenkins-shared-library@v0.6.10') _ def pod = libraryResource 'io/milvus/pod/tekton.yaml' def output = [:] @@ -71,8 +71,8 @@ pipeline { steps { container('kubectl') { script { - helm_release_name = tekton.release_name milvus_deployment_option: milvus_deployment_option, - changeId: "${env.CHANGE_ID}", + helm_release_name = tekton.release_name milvus_deployment_option: milvus_deployment_option, + changeId: "${env.CHANGE_ID}", buildId:"${env.BUILD_ID}" job_name = tekton.test helm_release_name: helm_release_name, @@ -98,9 +98,20 @@ pipeline { } post { always { - container('tkn') { - script { + steps { + container('tkn') { + script { tekton.sure_stop(job_name) + } + } + + container('archive') { + script { + tekton.archive milvus_deployment_option: milvus_deployment_option, + release_name: helm_release_name , + change_id: env.CHANGE_ID, + build_id: env.BUILD_ID + } } } }