use trim() to remove newlines when reading VERSION
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
4f6830b271
commit
e38ed4144a
|
@ -33,7 +33,7 @@ timeout(90) {
|
||||||
|
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
version = readFile "${env.WORKSPACE}/VERSION"
|
version = readFile("${env.WORKSPACE}/VERSION").trim()
|
||||||
|
|
||||||
sh 'git fetch --tags'
|
sh 'git fetch --tags'
|
||||||
sh 'rm -rf node_modules'
|
sh 'rm -rf node_modules'
|
||||||
|
|
|
@ -37,7 +37,7 @@ timeout(90) {
|
||||||
|
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
version = readFile "${env.WORKSPACE}/VERSION"
|
version = readFile("${env.WORKSPACE}/VERSION").trim()
|
||||||
|
|
||||||
sh 'git fetch --tags'
|
sh 'git fetch --tags'
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ timeout(90) {
|
||||||
|
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
version = readFile "${env.WORKSPACE}/VERSION"
|
version = readFile("${env.WORKSPACE}/VERSION").trim()
|
||||||
|
|
||||||
sh 'git fetch --tags'
|
sh 'git fetch --tags'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue