deploySingle2Dev.groovy 948 字节
Newer Older
T
add ci  
test 已提交
1 2 3 4
try {
    sh 'helm init --client-only --skip-refresh --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts'
    sh 'helm repo update'
    dir ('milvus-helm') {
T
test 已提交
5
        checkout([$class: 'GitSCM', branches: [[name: "0.5.0"]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_CREDENTIALS_ID}", url: "https://github.com/milvus-io/milvus-helm.git", name: 'origin', refspec: "+refs/heads/0.5.0:refs/remotes/origin/0.5.0"]]])
T
add ci  
test 已提交
6
        dir ("milvus-gpu") {
M
milvus-ci-robot 已提交
7
            sh "helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu -f ci/values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
T
add ci  
test 已提交
8 9 10 11
        }
    }
} catch (exc) {
    echo 'Helm running failed!'
12
    sh "helm del --purge ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu"
T
add ci  
test 已提交
13 14
    throw exc
}