ci(Jenkinsfile): refs #8285 Move version step to begining
gitea/salix/pipeline/head This commit looks good Details
gitea/salix/pipeline/pr-dev Build started... Details
gitea/salix/pipeline/pr-master Build started... Details

This commit is contained in:
Juan Ferrer 2024-12-10 11:18:21 +01:00
parent 15d3f7ee60
commit 9e01313fac
1 changed files with 12 additions and 12 deletions

24
Jenkinsfile vendored
View File

@ -64,6 +64,18 @@ pipeline {
PROJECT_NAME = 'salix'
}
stages {
stage('Version') {
when {
expression { RUN_BUILD }
}
steps {
script {
def packageJson = readJSON file: 'package.json'
def version = "${packageJson.version}-build${env.BUILD_ID}"
writeFile(file: 'VERSION.txt', text: version)
}
}
}
stage('Install') {
environment {
NODE_ENV = ''
@ -93,18 +105,6 @@ pipeline {
}
}
}
stage('Version') {
when {
expression { RUN_BUILD }
}
steps {
script {
def packageJson = readJSON file: 'package.json'
def version = "${packageJson.version}-build${env.BUILD_ID}"
writeFile(file: 'VERSION.txt', text: version)
}
}
}
stage('Stack') {
parallel {
stage('Back') {