use VERSION file in Jenkinsfiles

This commit is contained in:
Jakub Sokołowski 2018-05-24 11:50:27 +02:00
parent ec6df03fbc
commit a3e3cd7891
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ timeout(90) {
checkout scm
version = BRANCH_NAME.substring(8)
version = readFile "${env.WORKSPACE}/VERSION"
sh 'echo "' + version + '" > .version'
sh 'git fetch --tags'

View File

@ -37,7 +37,8 @@ timeout(90) {
checkout scm
version = BRANCH_NAME.substring(8)
version = readFile "${env.WORKSPACE}/VERSION"
sh 'echo "' + version + '" > .version'
sh 'git fetch --tags'