mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
Update ci groovy (#21839)
Signed-off-by: Bennu-Li <yunmei.li@zilliz.com>
This commit is contained in:
parent
142ddc2bb9
commit
a885eb451a
@ -48,6 +48,7 @@ pipeline {
|
|||||||
script {
|
script {
|
||||||
sh 'printenv'
|
sh 'printenv'
|
||||||
def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim()
|
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()
|
def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
|
||||||
imageTag="${env.BRANCH_NAME}-${date}-${gitShortCommit}"
|
imageTag="${env.BRANCH_NAME}-${date}-${gitShortCommit}"
|
||||||
withCredentials([usernamePassword(credentialsId: "${env.CI_DOCKER_CREDENTIAL_ID}", usernameVariable: 'CI_REGISTRY_USERNAME', passwordVariable: 'CI_REGISTRY_PASSWORD')]){
|
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') {
|
if ("${MILVUS_SERVER_TYPE}" == 'distributed') {
|
||||||
clusterEnabled = "true"
|
clusterEnabled = "true"
|
||||||
}
|
}
|
||||||
|
sh 'git config --global --add safe.directory /home/jenkins/agent/workspace'
|
||||||
|
|
||||||
if ("${MILVUS_CLIENT}" == "pymilvus") {
|
if ("${MILVUS_CLIENT}" == "pymilvus") {
|
||||||
if ("${imageTag}"==''){
|
if ("${imageTag}"==''){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user