diff --git a/Jenkinsfile b/Jenkinsfile index 1a0505246..252b1a1f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,9 +32,11 @@ pre: { // https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference //env.DEBUG = 'strong-remoting:shared-method' } - node { stage('Setup') { + def packageJson = readJSON file: 'package.json' + env.VERSION = packageJson.version + env.GIT_COMMIT_MSG = sh( script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true @@ -43,7 +45,6 @@ node { setEnv() } } - pipeline { agent any options { @@ -57,14 +58,6 @@ 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 = "" @@ -128,7 +121,7 @@ pipeline { } stage('Output') { steps { - echo "${env.NODE_ENV}" + echo "${env.VERSION}" } } stage('Deploy') {