From 6a27b752e22693c2a496841ec77c1b83d6808449 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Thu, 1 Feb 2024 22:13:36 +0100 Subject: [PATCH] build: refs #6706 Jenkinsfile test --- Jenkinsfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2aba146de..af616498b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ def PROTECTED_BRANCH def FROM_GIT def RUN_TESTS -before: { +pre: { switch (env.BRANCH_NAME) { case 'test': env.NODE_ENV = 'test' @@ -31,14 +31,17 @@ before: { // Uncomment to enable debugging // https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference //env.DEBUG = 'strong-remoting:shared-method' +} +pipeline { + stage('Setup') { + env.GIT_COMMIT_MSG = sh( + script: 'git log -1 --pretty=%B ${GIT_COMMIT}', + returnStdout: true + ).trim() - env.GIT_COMMIT_MSG = sh( - script: 'git log -1 --pretty=%B ${GIT_COMMIT}', - returnStdout: true - ).trim() - - setEnv() + setEnv() + } } pipeline {