add default env type to copy for mobile builds
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5532510c56
commit
d985a82670
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue