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 */