update stages conditions

This commit is contained in:
Roberto Cirillo 2022-04-15 16:26:45 +02:00
parent 770888e43d
commit 5fa3955500
1 changed files with 6 additions and 4 deletions

10
Jenkinsfile vendored
View File

@ -45,9 +45,10 @@ pipeline {
} }
stage('Add new pending deploy ') { stage('Add new pending deploy ') {
when{ when{
allOf{ environment name: 'IS_CRON', value: 'True'
anyOf{
triggeredBy 'BuildUpstreamCause' triggeredBy 'BuildUpstreamCause'
environment name: 'IS_CRON', value: 'True' triggeredBy 'UpstreamCause'
} }
} }
steps { steps {
@ -56,9 +57,10 @@ pipeline {
} }
stage('Deploy from job ') { stage('Deploy from job ') {
when{ when{
allOf{ environment name: 'IS_CRON', value: 'False'
anyOf{
triggeredBy 'BuildUpstreamCause' triggeredBy 'BuildUpstreamCause'
environment name: 'IS_CRON', value: 'False' triggeredBy 'UpstreamCause'
} }
} }
steps { steps {