set cron every two hours

This commit is contained in:
Roberto Cirillo 2022-04-27 15:16:29 +02:00
parent 9d5198c153
commit fbb8c9941c
1 changed files with 3 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -28,9 +28,11 @@ pipeline {
} }
triggers { triggers {
// every fifteen minutes (perhaps at :07, :22, :37, :52) // every fifteen minutes (perhaps at :07, :22, :37, :52)
cron('H/15 * * * *') // cron('H/15 * * * *')
// once a day on the 1st and 15th of every month // once a day on the 1st and 15th of every month
// cron ('H H 1,15 * *') // cron ('H H 1,15 * *')
// once every two hours at 45 minutes past the hour starting at 9:45 AM and finishing at 3:45 PM every weekday.
cron('45 9-16/2 * * 1-5')
} }
//once in every two hours slot between 9 AM and 5 PM every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 4:38 PM) //once in every two hours slot between 9 AM and 5 PM every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 4:38 PM)
// cron('H H(9-16)/2 * * 1-5') // cron('H H(9-16)/2 * * 1-5')