From d5aff9fe1dbc5000d5b9f1480e9f6b169af93f9d Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 15 Apr 2022 15:06:25 +0200 Subject: [PATCH] removed unused vars, add new stage --- Jenkinsfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d9f30a9..281d77d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline { ''' } } - stage('clone and exec') { + stage('Deploy from system') { when{ allOf{ triggeredBy 'TimeTrigger' @@ -31,7 +31,7 @@ pipeline { echo 'Deploy from system properly triggered' } } - stage('Planning new deploy') { + stage('Add new pending deploy ') { when{ environment name: 'IS_CRON', value: 'True' } @@ -39,6 +39,14 @@ pipeline { echo 'New deploy of ${job} appended to the deploy file' } } + stage('Deploy from job ') { + when{ + environment name: 'IS_CRON', value: 'False' + } + steps { + echo 'New deploy of ${job} appended to the deploy file' + } + } } post { @@ -46,8 +54,8 @@ pipeline { script { sh ''' echo ' jobs currently appended:' - cat ./${ACTION_DEPLOY_FILE}.csv ''' + //cat ./${ACTION_DEPLOY_FILE}.csv } } success {