From e54c3c3aedb76befcdd5ac1e91bc3f73ec755a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 12 Jun 2018 12:43:12 +0200 Subject: [PATCH] fix declaration location of build_no variables --- Jenkinsfile.nightly_fastlane | 5 +++-- Jenkinsfile.release | 3 ++- Jenkinsfile.upload_release_android | 3 ++- Jenkinsfile.upload_release_ios | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile.nightly_fastlane b/Jenkinsfile.nightly_fastlane index 885b051a82..b5a9a1bc97 100644 --- a/Jenkinsfile.nightly_fastlane +++ b/Jenkinsfile.nightly_fastlane @@ -22,7 +22,8 @@ timeout(90) { def apkUrl = '' def ipaUrl = '' def testPassed = true - def version; + def version + def build_no load "$HOME/env.groovy" @@ -53,7 +54,7 @@ timeout(90) { usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS' ]]) { - def build_no = sh( + build_no = sh( returnStdout: true, script: './scripts/build_no.sh --increment' ).trim() diff --git a/Jenkinsfile.release b/Jenkinsfile.release index f861ab1fb3..2757a84f7f 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -23,6 +23,7 @@ timeout(90) { def ipaUrl = '' def testPassed = true def version + def build_no load "$HOME/env.groovy" @@ -53,7 +54,7 @@ timeout(90) { usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS' ]]) { - def build_no = sh( + build_no = sh( returnStdout: true, script: './scripts/build_no.sh --increment' ).trim() diff --git a/Jenkinsfile.upload_release_android b/Jenkinsfile.upload_release_android index 13763d1bfb..ddcfde9bc6 100644 --- a/Jenkinsfile.upload_release_android +++ b/Jenkinsfile.upload_release_android @@ -23,6 +23,7 @@ timeout(90) { def ipaUrl = '' def testPassed = true def version + def build_no load "$HOME/env.groovy" @@ -57,7 +58,7 @@ timeout(90) { usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS' ]]) { - def build_no = sh( + build_no = sh( returnStdout: true, script: './scripts/build_no.sh --increment' ).trim() diff --git a/Jenkinsfile.upload_release_ios b/Jenkinsfile.upload_release_ios index 0257eba530..dcd9ea2525 100644 --- a/Jenkinsfile.upload_release_ios +++ b/Jenkinsfile.upload_release_ios @@ -23,6 +23,7 @@ timeout(90) { def ipaUrl = '' def testPassed = true def version + def build_no load "$HOME/env.groovy" @@ -56,7 +57,7 @@ timeout(90) { usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS' ]]) { - def build_no = sh( + build_no = sh( returnStdout: true, script: './scripts/build_no.sh --increment' ).trim()