mirror of https://github.com/milvus-io/milvus.git
17 lines
1.0 KiB
Groovy
17 lines
1.0 KiB
Groovy
try {
|
|
sh 'helm init --client-only --skip-refresh --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts'
|
|
sh 'helm repo add milvus https://registry.zilliz.com/chartrepo/milvus'
|
|
sh 'helm repo update'
|
|
dir ("milvus-helm") {
|
|
checkout([$class: 'GitSCM', branches: [[name: "${SEMVER}"]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_USER}", url: "git@192.168.1.105:megasearch/milvus-helm.git", name: 'origin', refspec: "+refs/heads/${SEMVER}:refs/remotes/origin/${SEMVER}"]]])
|
|
dir ("milvus/milvus-gpu") {
|
|
sh "helm install --wait --timeout 300 --set engine.image.repository=\"zilliz.azurecr.cn/milvus/engine\" --set engine.image.tag=${DOCKER_VERSION} --set expose.type=loadBalancer --name ${env.JOB_NAME}-${env.BUILD_NUMBER} -f ci/values.yaml --namespace milvus-1 --version 0.5.0 ."
|
|
}
|
|
}
|
|
} catch (exc) {
|
|
echo 'Helm running failed!'
|
|
sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}"
|
|
throw exc
|
|
}
|
|
|