This commit is contained in:
parent
699e56a64c
commit
dfbe1ef556
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue