From e0750810fd83cd7985b6a534152c07020a8c6cc6 Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Tue, 11 Oct 2022 15:04:29 +0200 Subject: [PATCH] Restore IS_SCHEDULED var before the merge --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2e1fb6c..1e52bdd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -120,7 +120,7 @@ pipeline { anyOf{ allOf{ triggeredBy 'TimerTrigger' - environment name: 'IS_SCHEDULED_TEST', value: 'True' + environment name: 'IS_SCHEDULED', value: 'True' } } } @@ -140,7 +140,7 @@ pipeline { anyOf{ allOf{ triggeredBy 'TimerTrigger' - environment name: 'IS_SCHEDULED_TEST', value: 'False' + environment name: 'IS_SCHEDULED', value: 'False' } } @@ -152,7 +152,7 @@ pipeline { } stage('New pending deploy ') { when{ - environment name: 'IS_SCHEDULED_TEST', value: 'True' + environment name: 'IS_SCHEDULED', value: 'True' anyOf{ triggeredBy 'BuildUpstreamCause' triggeredBy 'UpstreamCause' @@ -180,7 +180,7 @@ pipeline { } stage('Deploy from job ') { when{ - environment name: 'IS_SCHEDULED_TEST', value: 'False'; + environment name: 'IS_SCHEDULED', value: 'False'; expression { env.TRIGGER_CD.toBoolean() } @@ -232,7 +232,7 @@ pipeline { stage('Deploy manually ') { when{ allOf{ - environment name: 'IS_SCHEDULED_TEST', value: 'False'; + environment name: 'IS_SCHEDULED', value: 'False'; triggeredBy 'UserIdCause' } }