From a885eb451a8a6b9f548a5fa8190a9738c21ff729 Mon Sep 17 00:00:00 2001 From: Bennu Date: Sun, 29 Jan 2023 09:51:52 +0800 Subject: [PATCH] Update ci groovy (#21839) Signed-off-by: Bennu-Li --- ci/jenkins/PR.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/jenkins/PR.groovy b/ci/jenkins/PR.groovy index 89d99bdcb3..6212d9e4a9 100644 --- a/ci/jenkins/PR.groovy +++ b/ci/jenkins/PR.groovy @@ -48,6 +48,7 @@ pipeline { script { sh 'printenv' def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim() + sh 'git config --global --add safe.directory /home/jenkins/agent/workspace' def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim() imageTag="${env.BRANCH_NAME}-${date}-${gitShortCommit}" withCredentials([usernamePassword(credentialsId: "${env.CI_DOCKER_CREDENTIAL_ID}", usernameVariable: 'CI_REGISTRY_USERNAME', passwordVariable: 'CI_REGISTRY_PASSWORD')]){ @@ -98,6 +99,7 @@ pipeline { if ("${MILVUS_SERVER_TYPE}" == 'distributed') { clusterEnabled = "true" } + sh 'git config --global --add safe.directory /home/jenkins/agent/workspace' if ("${MILVUS_CLIENT}" == "pymilvus") { if ("${imageTag}"==''){