refs #6915 test_master24_8 #2067

Merged
alexm merged 561 commits from test_master24_8 into master 2024-02-22 07:31:34 +00:00
1 changed files with 4 additions and 11 deletions
Showing only changes of commit d7b15d3221 - Show all commits

15
Jenkinsfile vendored
View File

@ -32,9 +32,11 @@ pre: {
// https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference // https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference
//env.DEBUG = 'strong-remoting:shared-method' //env.DEBUG = 'strong-remoting:shared-method'
} }
node { node {
stage('Setup') { stage('Setup') {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
env.GIT_COMMIT_MSG = sh( env.GIT_COMMIT_MSG = sh(
script: 'git log -1 --pretty=%B ${GIT_COMMIT}', script: 'git log -1 --pretty=%B ${GIT_COMMIT}',
returnStdout: true returnStdout: true
@ -43,7 +45,6 @@ node {
setEnv() setEnv()
} }
} }
pipeline { pipeline {
agent any agent any
options { options {
@ -57,14 +58,6 @@ pipeline {
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}" STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
} }
stages { stages {
stage('Checkout') {
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
}
}
}
stage('Install') { stage('Install') {
environment { environment {
NODE_ENV = "" NODE_ENV = ""
@ -128,7 +121,7 @@ pipeline {
} }
stage('Output') { stage('Output') {
steps { steps {
echo "${env.NODE_ENV}" echo "${env.VERSION}"
} }
} }
stage('Deploy') { stage('Deploy') {