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 {