mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
fix: arm-based gpu image (#33276)
Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
This commit is contained in:
parent
e5ca1f7c45
commit
64d0a71ba0
@ -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 """
|
||||||
|
Loading…
Reference in New Issue
Block a user