From aeb7c55861e5839195d2c1df7d711fb0d51489c5 Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Tue, 4 Oct 2022 16:26:49 +0200 Subject: [PATCH] removed IS_CRON_TMP var. Restored the old one IS_CRON --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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' } }