fix: arm-based gpu image (#33276)

Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
This commit is contained in:
sammy.huang 2024-05-22 17:08:46 +08:00 committed by GitHub
parent e5ca1f7c45
commit 64d0a71ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,13 @@ pipeline {
steps { steps {
script { script {
sh """
git config --global --add safe.directory /home/jenkins/agent/workspace
"""
def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim()
def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
sh """ sh """
set -a # automatically export all variables from .env set -a # automatically export all variables from .env
. .env . .env
@ -41,9 +48,6 @@ pipeline {
docker run --net=host -v \$(pwd):/root/milvus -v /root/.conan:/root/.conan -w /root/milvus milvusdb/milvus-env:gpu-ubuntu22.04-\${GPU_DATE_VERSION} sh -c "make clean && make gpu-install" docker run --net=host -v \$(pwd):/root/milvus -v /root/.conan:/root/.conan -w /root/milvus milvusdb/milvus-env:gpu-ubuntu22.04-\${GPU_DATE_VERSION} sh -c "make clean && make gpu-install"
""" """
def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim()
def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
withCredentials([usernamePassword(credentialsId: "${env.DOCKER_CREDENTIALS_ID}", usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) { withCredentials([usernamePassword(credentialsId: "${env.DOCKER_CREDENTIALS_ID}", usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
sh 'docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}' sh 'docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}'
sh """ sh """