From 3356691124a1878199bae163626d75b340932f04 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Thu, 1 Feb 2024 22:12:01 +0100 Subject: [PATCH] build: refs #6706 Jenkinsfile test --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d2fb6cbaa..2aba146de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,8 +32,6 @@ before: { // https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference //env.DEBUG = 'strong-remoting:shared-method' - def packageJson = readJSON file: 'package.json' - env.VERSION = packageJson.version env.GIT_COMMIT_MSG = sh( script: 'git log -1 --pretty=%B ${GIT_COMMIT}', @@ -56,6 +54,14 @@ pipeline { STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}" } stages { + stage('Checkout') { + steps { + script { + def packageJson = readJSON file: 'package.json' + env.VERSION = packageJson.version + } + } + } stage('Install') { environment { NODE_ENV = ""