fix: refs #8285 Fix pipeline version
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-12-10 11:05:57 +01:00
parent 699e56a64c
commit dfbe1ef556
1 changed files with 14 additions and 0 deletions

14
Jenkinsfile vendored
View File

@ -93,6 +93,20 @@ 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)
def readVersion = readFile(file: 'VERSION.txt').trim()
echo "VERSION: ${readVersion}"
}
}
}
stage('Stack') {
parallel {
stage('Back') {