mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
b30cefc5e5
Former-commit-id: 4fabf7de507cb7eebbc532d3753c4b10cf0d391d
24 lines
1.2 KiB
Groovy
24 lines
1.2 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 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.JOB_NAME}-${env.BUILD_NUMBER} --version 0.3.1 ."
|
|
}
|
|
}
|
|
timeout(time: 2, unit: 'MINUTES') {
|
|
waitUntil {
|
|
def result = sh script: "nc -z -w 2 ${env.JOB_NAME}-${env.BUILD_NUMBER}-milvus-gpu-engine.kube-opt.svc.cluster.local 19530", returnStatus: true
|
|
return !result
|
|
}
|
|
}
|
|
} catch (exc) {
|
|
updateGitlabCommitStatus name: 'Deloy to Dev', state: 'failed'
|
|
echo 'Helm running failed!'
|
|
sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}"
|
|
throw exc
|
|
}
|
|
|