Change cron job schedule

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/4973/head^2
zhenshan.cao 2021-03-30 11:43:55 +08:00 committed by yefu.chen
parent 72917467ec
commit 0be85b3a62
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
def isTimeTriggeredBuild = currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() != 0
def regressionTimeout = isTimeTriggeredBuild ? "300" : "60"
def regressionTimeout = isTimeTriggeredBuild ? "180" : "60"
timeout(time: "${regressionTimeout}", unit: 'MINUTES') {
container('deploy-env') {
dir ('milvus-helm-chart') {
@ -49,7 +49,7 @@ timeout(time: "${regressionTimeout}", unit: 'MINUTES') {
sh "python3 -m pip install --no-cache-dir -r requirements.txt"
if (isTimeTriggeredBuild) {
echo "This is Cron Job!"
sh "pytest --tags=0331 --ip ${env.HELM_RELEASE_NAME}-milvus-ha.${env.HELM_RELEASE_NAMESPACE}.svc.cluster.local"
sh "pytest --tags=0331 -n 2 --ip ${env.HELM_RELEASE_NAME}-milvus-ha.${env.HELM_RELEASE_NAMESPACE}.svc.cluster.local"
} else {
sh "pytest --tags=smoke -n 2 --ip ${env.HELM_RELEASE_NAME}-milvus-ha.${env.HELM_RELEASE_NAMESPACE}.svc.cluster.local"
}

View File

@ -2,7 +2,7 @@
@Library('mpl') _
String cron_timezone = "TZ=Asia/Shanghai"
String cron_string = BRANCH_NAME == "r0.3-test" ? "50 22,4,10,16 * * * " : ""
String cron_string = BRANCH_NAME == "r0.3-test" ? "50 20,22,0,2,4,6,11,16 * * * " : ""
pipeline {
agent none