From 3b213c10516862f994977a905e1e8b78bfb35336 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 22 Apr 2022 16:03:08 +0200 Subject: [PATCH] fix sintax --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bab6cbb..ebac38e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { } } } - stage('Nothing to do by System ') { + stage('Nothing to do by System ') { when{ allOf{ triggeredBy 'TimerTrigger' @@ -57,7 +57,7 @@ pipeline { echo 'Do Nothing: cron build disabled' } } - stage('Nothing to do by Job ') { + stage('Nothing to do by Job ') { when{ environment name: 'IS_CRON', value: True anyOf{ @@ -69,8 +69,7 @@ pipeline { echo 'Do Nothing: cron build disabled' } } - - stage('Add new pending deploy ') { + stage('Add new pending deploy ') { when{ environment name: 'IS_CRON', value: True anyOf{ @@ -95,7 +94,6 @@ pipeline { echo "Cron build disabled. New deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing" } } - } post { always {