Commit 30b0d24f authored by Jin Hai's avatar Jin Hai Committed by GitHub
Browse files

Merge pull request #111 from milvus-ci-robot/0.5.1

Add cron syntax to set Time Zone

Former-commit-id: b760061e4e3cbfa1ba186289f4cfa50b5c88e76b
parents e8fd367d f776ccdb
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
String cron_timezone = "TZ=Asia/Shanghai"
String cron_string = BRANCH_NAME == "master" ? "H 0 * * * " : ""
cron_string =  BRANCH_NAME == "0.5.1" ? "H 1 * * * " : cron_string

pipeline {
    agent none

    triggers { cron(cron_string) }
    triggers {
        cron """${cron_timezone}
            ${cron_string}"""
    }

    options {
        timestamps()
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ sh 'helm repo update'
dir ('milvus-helm') {
    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"]]])
    dir ("milvus-gpu") {
        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 ."
        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/db_backend/sqlite_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
    }
}