add default env type to copy for mobile builds

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-08-29 14:39:35 -04:00
parent 5532510c56
commit d985a82670
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 19 additions and 15 deletions

View File

@ -125,7 +125,7 @@ def pkgFilename(type, ext) {
def githubNotify(apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, changeId) {
withCredentials([string(credentialsId: 'GIT_HUB_TOKEN', variable: 'githubToken')]) {
def message =
def message = (
"#### :white_check_mark: CI BUILD SUCCESSFUL\\n" +
"Jenkins job: [${currentBuild.displayName}](${currentBuild.absoluteUrl})\\n"+
"##### Mobile\\n" +
@ -134,12 +134,14 @@ def githubNotify(apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, changeId) {
"##### Desktop\\n" +
"* [MacOS](${dmgUrl})\\n" +
"* [AppImage](${appUrl})"
def script = "curl "+
)
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 ghOutput = sh(returnStdout: true, script: script)
println("Result of github comment curl: " + ghOutput);
}

View File

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