diff --git a/Jenkinsfile b/Jenkinsfile index adaf194..cd42cb3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,7 +81,7 @@ pipeline { allOf{ triggeredBy 'TimerTrigger' // maybe we can add a new condition in order to consider the manual execution of this pipeline - environment name: 'IS_CRON_TMP', value: 'True' + environment name: 'IS_CRON', value: 'True' } } steps { @@ -126,7 +126,7 @@ pipeline { anyOf{ allOf{ triggeredBy 'TimerTrigger' - environment name: 'IS_CRON_TMP', value: 'False' + environment name: 'IS_CRON', value: 'False' } } @@ -137,7 +137,7 @@ pipeline { } stage('New pending deploy ') { when{ - environment name: 'IS_CRON_TMP', value: 'True' + environment name: 'IS_CRON', value: 'True' anyOf{ triggeredBy 'BuildUpstreamCause' triggeredBy 'UpstreamCause' @@ -164,7 +164,7 @@ pipeline { } stage('Deploy from job ') { when{ - environment name: 'IS_CRON_TMP', value: 'False'; + environment name: 'IS_CRON', value: 'False'; expression { env.TRIGGER_CD.toBoolean() } @@ -187,7 +187,7 @@ pipeline { stage('Deploy manually ') { when{ allOf{ - environment name: 'IS_CRON_TMP', value: 'False'; + environment name: 'IS_CRON', value: 'False'; triggeredBy 'UserIdCause' } }