[cronjob] Update periodically scheduled tasks to "50 22 * * *" (#5715)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/5721/head
quicksilver 2021-06-10 15:33:49 +08:00 committed by GitHub
parent e97936ba1c
commit f00b3bcbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 22 deletions

View File

@ -3,7 +3,7 @@
// When scheduling a job that gets automatically triggered by changes,
// you need to include a [cronjob] tag within the commit message.
String cron_timezone = "TZ=Asia/Shanghai"
String cron_string = BRANCH_NAME == "master" ? "50 20,22,0,6,11,16 * * * " : ""
String cron_string = BRANCH_NAME == "master" ? "50 22 * * * " : ""
pipeline {
agent none
@ -75,10 +75,9 @@ pipeline {
}
}
}
success {
always {
container('main') {
script {
if ( env.CHANGE_ID == null ){
def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim()
def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
@ -92,13 +91,7 @@ pipeline {
"""
sh 'docker logout ${DOKCER_REGISTRY_URL}'
}
}
}
}
}
always {
container('main') {
script {
dir("${env.ARTIFACTS}") {
sh "find ./kind -path '*/history/*' -type f | xargs tar -zcvf artifacts-${PROJECT_NAME}-${MILVUS_SERVER_TYPE}-${SEMVER}-${env.BUILD_NUMBER}-e2e-nightly-logs.tar.gz --transform='s:^[^/]*/[^/]*/[^/]*/[^/]*/::g' || true"
archiveArtifacts artifacts: "**.tar.gz", allowEmptyArchive: true