cron sintax fix

This commit is contained in:
Roberto Cirillo 2022-04-15 15:23:26 +02:00
parent e570a478a7
commit ef5981f6c5
1 changed files with 5 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -1,11 +1,12 @@
pipeline {
agent {
label 'CD'
triggers {
//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')
}
}
triggers {
cron "*/10 * * * *"
}
//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')
environment {
AGENT_ROOT_FOLDER = "${agent_root_folder}"