generated from gCubeCI/Pipeline-Docker-Template
set trigger every 15'
This commit is contained in:
parent
622dce0fab
commit
52d802c6b3
|
@ -16,8 +16,10 @@ pipeline {
|
|||
label 'CD'
|
||||
}
|
||||
triggers {
|
||||
// every fifteen minutes (perhaps at :07, :22, :37, :52)
|
||||
cron('H/15 * * * *')
|
||||
// once a day on the 1st and 15th of every month
|
||||
cron 'H H 1,15 * *'
|
||||
// cron ('H H 1,15 * *')
|
||||
}
|
||||
//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')
|
||||
|
@ -41,6 +43,7 @@ pipeline {
|
|||
when{
|
||||
allOf{
|
||||
triggeredBy 'TimerTrigger'
|
||||
// maybe we can add a new condition in order to consider the manual execution of this pipeline
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
}
|
||||
}
|
||||
|
@ -67,18 +70,6 @@ pipeline {
|
|||
echo 'Do Nothing: cron build disabled'
|
||||
}
|
||||
}
|
||||
stage('Nothing to do by Job ') {
|
||||
when{
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
anyOf{
|
||||
triggeredBy 'BuildUpstreamCause'
|
||||
triggeredBy 'UpstreamCause'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo 'Do Nothing: cron build disabled'
|
||||
}
|
||||
}
|
||||
stage('Add new pending deploy ') {
|
||||
when{
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
|
|
Loading…
Reference in New Issue