From 9ac38b137ecaf136b4329e5bee35dc5e0356ee87 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 30 Aug 2022 15:03:35 +0200 Subject: [PATCH] change var IS_CRON to IS_CRON_TMP temporarily --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cc1e513..9f6dd59 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -89,7 +89,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', value: 'True' + environment name: 'IS_CRON_TMP', value: 'True' } } steps { @@ -122,7 +122,7 @@ pipeline { anyOf{ allOf{ triggeredBy 'TimerTrigger' - environment name: 'IS_CRON', value: 'False' + environment name: 'IS_CRON_TMP', value: 'False' } } @@ -133,7 +133,7 @@ pipeline { } stage('New pending deploy ') { when{ - environment name: 'IS_CRON', value: 'True' + environment name: 'IS_CRON_TMP', value: 'True' anyOf{ triggeredBy 'BuildUpstreamCause' triggeredBy 'UpstreamCause' @@ -161,7 +161,7 @@ pipeline { } stage('Deploy from job ') { when{ - environment name: 'IS_CRON', value: 'False'; + environment name: 'IS_CRON_TMP', value: 'False'; expression { env.TRIGGER_CD.toBoolean() } @@ -184,7 +184,7 @@ pipeline { stage('Deploy manually ') { when{ allOf{ - environment name: 'IS_CRON', value: 'False'; + environment name: 'IS_CRON_TMP', value: 'False'; triggeredBy 'UserIdCause' } }