build: refs #6706 Jenkinsfile test
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2024-02-01 22:12:01 +01:00
parent 76785b99b1
commit 3356691124
1 changed files with 8 additions and 2 deletions

10
Jenkinsfile vendored
View File

@ -32,8 +32,6 @@ before: {
// 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'
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}',
@ -56,6 +54,14 @@ 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 = ""