mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
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,7 +125,7 @@ def pkgFilename(type, ext) {
|
|||||||
|
|
||||||
def githubNotify(apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, changeId) {
|
def githubNotify(apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, changeId) {
|
||||||
withCredentials([string(credentialsId: 'GIT_HUB_TOKEN', variable: 'githubToken')]) {
|
withCredentials([string(credentialsId: 'GIT_HUB_TOKEN', variable: 'githubToken')]) {
|
||||||
def message =
|
def message = (
|
||||||
"#### :white_check_mark: CI BUILD SUCCESSFUL\\n" +
|
"#### :white_check_mark: CI BUILD SUCCESSFUL\\n" +
|
||||||
"Jenkins job: [${currentBuild.displayName}](${currentBuild.absoluteUrl})\\n"+
|
"Jenkins job: [${currentBuild.displayName}](${currentBuild.absoluteUrl})\\n"+
|
||||||
"##### Mobile\\n" +
|
"##### Mobile\\n" +
|
||||||
@ -134,12 +134,14 @@ def githubNotify(apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, changeId) {
|
|||||||
"##### Desktop\\n" +
|
"##### Desktop\\n" +
|
||||||
"* [MacOS](${dmgUrl})\\n" +
|
"* [MacOS](${dmgUrl})\\n" +
|
||||||
"* [AppImage](${appUrl})"
|
"* [AppImage](${appUrl})"
|
||||||
def script = "curl "+
|
)
|
||||||
|
def script = (
|
||||||
|
"curl "+
|
||||||
"-u status-im:${githubToken} " +
|
"-u status-im:${githubToken} " +
|
||||||
"-H 'Content-Type: application/json' " +
|
"-H 'Content-Type: application/json' " +
|
||||||
"--data '{\"body\": \"${message}\"}' " +
|
"--data '{\"body\": \"${message}\"}' " +
|
||||||
"https://api.github.com/repos/status-im/status-react/issues/${changeId}/comments"
|
"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)
|
def ghOutput = sh(returnStdout: true, script: script)
|
||||||
println("Result of github comment curl: " + ghOutput);
|
println("Result of github comment curl: " + ghOutput);
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,8 @@ def prep(type = 'nightly') {
|
|||||||
sh 'cp .env.prod .env'; break
|
sh 'cp .env.prod .env'; break
|
||||||
case 'e2e':
|
case 'e2e':
|
||||||
sh 'cp .env.e2e .env'; break
|
sh 'cp .env.e2e .env'; break
|
||||||
|
default:
|
||||||
|
sh 'cp .env.jenkins .env'; break
|
||||||
}
|
}
|
||||||
common.installJSDeps('mobile')
|
common.installJSDeps('mobile')
|
||||||
/* install Maven dependencies */
|
/* install Maven dependencies */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user