From 724a1b62281b10992cc4c8c722d3c235ed6cfc8a Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Wed, 5 Oct 2022 10:21:20 +0200 Subject: [PATCH] rename var IS_CRON with IS_SCHEDULED --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e440a6c..049bfe4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -86,7 +86,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_SCHEDULED', value: 'True' } } steps { @@ -104,7 +104,7 @@ pipeline { anyOf{ allOf{ triggeredBy 'TimerTrigger' - environment name: 'IS_CRON_TMP', value: 'False' + environment name: 'IS_SCHEDULED', value: 'False' } } @@ -115,7 +115,7 @@ pipeline { } stage('New pending deploy ') { when{ - environment name: 'IS_CRON_TMP', value: 'True' + environment name: 'IS_SCHEDULED', value: 'True' anyOf{ triggeredBy 'BuildUpstreamCause' triggeredBy 'UpstreamCause' @@ -142,7 +142,7 @@ pipeline { } stage('Deploy from job ') { when{ - environment name: 'IS_CRON_TMP', value: 'False'; + environment name: 'IS_SCHEDULED', value: 'False'; expression { env.TRIGGER_CD.toBoolean() } @@ -165,7 +165,7 @@ pipeline { stage('Deploy manually ') { when{ allOf{ - environment name: 'IS_CRON_TMP', value: 'False'; + environment name: 'IS_SCHEDULED', value: 'False'; triggeredBy 'UserIdCause' } }