From b8b78f95179bdd6675e450b714df6323b1895690 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 11 Jan 2019 14:01:02 +0100 Subject: [PATCH] Jenkinsfile fix --- Jenkinsfile | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1bf3a1258..3b72ff637 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,30 +10,30 @@ pipeline { TAG = "${env.BRANCH_NAME}" } stages { - stage ('Checkout') { - script { - env.COMPOSE_PROJECT_NAME = env.JOB_NAME.replace('/', '-'); + script { + env.COMPOSE_PROJECT_NAME = env.JOB_NAME.replace('/', '-'); - switch (env.BRANCH_NAME) { - case 'master': - env.PORT = 5002 - break; - case 'test': - env.PORT = 5001 - break; - } - switch (env.BRANCH_NAME) { - case 'master': - env.NODE_ENV = 'production' - break; - case 'test': - env.NODE_ENV = 'test' - break; - case 'dev': - env.NODE_ENV = 'development' - break; - } + switch (env.BRANCH_NAME) { + case 'master': + env.PORT = 5002 + break; + case 'test': + env.PORT = 5001 + break; } + switch (env.BRANCH_NAME) { + case 'master': + env.NODE_ENV = 'production' + break; + case 'test': + env.NODE_ENV = 'test' + break; + case 'dev': + env.NODE_ENV = 'development' + break; + } + } + stage ('Checkout') { checkout scm script { env.GIT_COMMITTER_EMAIL = sh(