set cron timezone to Shanghai

Former-commit-id: 28271c43dfae440fd2baa541e846d80d6bf354d8
This commit is contained in:
milvus-ci-robot 2019-10-28 10:29:59 +08:00
parent 3e50d77cdc
commit 60d68defda

View File

@ -1,13 +1,13 @@
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
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_timezone}"
"${cron_string}"''')
cron """${cron_timezone}
${cron_string}"""
}
options {