From d985a82670df57f405ab95bb2a6408dc61d8d31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 29 Aug 2018 14:39:35 -0400 Subject: [PATCH] add default env type to copy for mobile builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/common.groovy | 32 +++++++++++++++++--------------- ci/mobile.groovy | 2 ++ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/ci/common.groovy b/ci/common.groovy index 5468f2ac0a..80101144f2 100644 --- a/ci/common.groovy +++ b/ci/common.groovy @@ -125,21 +125,23 @@ def pkgFilename(type, ext) { def githubNotify(apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, changeId) { withCredentials([string(credentialsId: 'GIT_HUB_TOKEN', variable: 'githubToken')]) { - def message = - "#### :white_check_mark: CI BUILD SUCCESSFUL\\n" + - "Jenkins job: [${currentBuild.displayName}](${currentBuild.absoluteUrl})\\n"+ - "##### Mobile\\n" + - "* [Android](${apkUrl}), ([e2e](${e2eUrl}))\\n" + - "* [iOS](${ipaUrl})\\n" + - "##### Desktop\\n" + - "* [MacOS](${dmgUrl})\\n" + - "* [AppImage](${appUrl})" - def script = "curl "+ - "-u status-im:${githubToken} " + - "-H 'Content-Type: application/json' " + - "--data '{\"body\": \"${message}\"}' " + - "https://api.github.com/repos/status-im/status-react/issues/${changeId}/comments" - println("running script:\n****\n" + script + "\n****"); + def message = ( + "#### :white_check_mark: CI BUILD SUCCESSFUL\\n" + + "Jenkins job: [${currentBuild.displayName}](${currentBuild.absoluteUrl})\\n"+ + "##### Mobile\\n" + + "* [Android](${apkUrl}), ([e2e](${e2eUrl}))\\n" + + "* [iOS](${ipaUrl})\\n" + + "##### Desktop\\n" + + "* [MacOS](${dmgUrl})\\n" + + "* [AppImage](${appUrl})" + ) + def script = ( + "curl "+ + "-u status-im:${githubToken} " + + "-H 'Content-Type: application/json' " + + "--data '{\"body\": \"${message}\"}' " + + "https://api.github.com/repos/status-im/status-react/issues/${changeId}/comments" + ) def ghOutput = sh(returnStdout: true, script: script) println("Result of github comment curl: " + ghOutput); } diff --git a/ci/mobile.groovy b/ci/mobile.groovy index 3aadbadea4..d5489cb6dd 100644 --- a/ci/mobile.groovy +++ b/ci/mobile.groovy @@ -11,6 +11,8 @@ def prep(type = 'nightly') { sh 'cp .env.prod .env'; break case 'e2e': sh 'cp .env.e2e .env'; break + default: + sh 'cp .env.jenkins .env'; break } common.installJSDeps('mobile') /* install Maven dependencies */