mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
6e190d78b7
Former-commit-id: 4fd843cc6f2a830377d6c7c98e4097af463b5b0d
25 lines
1.3 KiB
Groovy
25 lines
1.3 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-cluster") {
|
|
sh "helm install --wait --timeout 300 --set roServers.image.tag=${DOCKER_VERSION} --set woServers.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP -f ci/values.yaml --name ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster --namespace milvus-cluster --version 0.4.0 . "
|
|
}
|
|
}
|
|
/*
|
|
timeout(time: 2, unit: 'MINUTES') {
|
|
waitUntil {
|
|
def result = sh script: "nc -z -w 3 ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster-milvus-cluster-proxy.milvus-cluster.svc.cluster.local 19530", returnStatus: true
|
|
return !result
|
|
}
|
|
}
|
|
*/
|
|
} catch (exc) {
|
|
echo 'Helm running failed!'
|
|
sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
|
|
throw exc
|
|
}
|
|
|