From d19511341d021c4fe76dd2c3b4ab727b4ecd5fc0 Mon Sep 17 00:00:00 2001 From: "edward.zeng" Date: Thu, 28 Oct 2021 19:53:23 +0800 Subject: [PATCH] [skip ci] Fix push image groovy style. (#10842) Signed-off-by: Edward Zeng --- build/ci/jenkins/PublishImages.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/ci/jenkins/PublishImages.groovy b/build/ci/jenkins/PublishImages.groovy index 59ec511e70..f8f8eef0fc 100644 --- a/build/ci/jenkins/PublishImages.groovy +++ b/build/ci/jenkins/PublishImages.groovy @@ -51,7 +51,7 @@ pipeline { docker logout """ } - } + withCredentials([usernamePassword(credentialsId: "${env.HARBOR_CREDENTIAL_ID}", usernameVariable: 'HARBOR_USERNAME', passwordVariable: 'HARBOR_PASSWORD')]) { sh 'docker login harbor.zilliz.cc -u ${HARBOR_USERNAME} -p ${HARBOR_PASSWORD}' sh """ @@ -61,6 +61,7 @@ pipeline { docker logout """ } + } } } }