build: refs #6706 hook test #1988

Merged
juan merged 17 commits from 6706-optimizeHooks into dev 2024-02-01 22:40:39 +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
//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') {