use trim() to remove newlines when reading VERSION

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-05-25 15:59:48 +02:00
parent 4f6830b271
commit e38ed4144a
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ timeout(90) {
checkout scm
version = readFile "${env.WORKSPACE}/VERSION"
version = readFile("${env.WORKSPACE}/VERSION").trim()
sh 'git fetch --tags'
sh 'rm -rf node_modules'

View File

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

View File

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