build: refs #6706 Jenkinsfile fixes
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-02-01 22:23:58 +01:00
parent eb32b6daa2
commit d7b15d3221
1 changed files with 4 additions and 11 deletions

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') {