From 632beb04c5e77074e22241323618d6eb922820eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 25 May 2018 15:59:48 +0200 Subject: [PATCH] use trim() to remove newlines when reading VERSION --- Jenkinsfile.nightly_fastlane | 2 +- Jenkinsfile.release | 2 +- Jenkinsfile.upload_release | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile.nightly_fastlane b/Jenkinsfile.nightly_fastlane index db8de0fe1fe..8d2d4075f58 100644 --- a/Jenkinsfile.nightly_fastlane +++ b/Jenkinsfile.nightly_fastlane @@ -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' diff --git a/Jenkinsfile.release b/Jenkinsfile.release index 953513f5555..8ccb7cba4bc 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -37,7 +37,7 @@ timeout(90) { checkout scm - version = readFile "${env.WORKSPACE}/VERSION" + version = readFile("${env.WORKSPACE}/VERSION").trim() sh 'git fetch --tags' diff --git a/Jenkinsfile.upload_release b/Jenkinsfile.upload_release index a97dec9830e..099bd1294a4 100644 --- a/Jenkinsfile.upload_release +++ b/Jenkinsfile.upload_release @@ -37,7 +37,7 @@ timeout(90) { checkout scm - version = readFile "${env.WORKSPACE}/VERSION" + version = readFile("${env.WORKSPACE}/VERSION").trim() sh 'git fetch --tags'