update cn.status.im APK link on release

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-09-19 09:35:38 -04:00
parent 4ab5e43616
commit f061025b67
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 21 additions and 12 deletions

View File

@ -109,8 +109,9 @@ pipeline {
} } } }
} }
stage('Publish') { stage('Publish') {
when { expression { cmn.getBuildType() == 'nightly' } } steps { script {
steps { switch (cmn.getBuildType()) {
case 'nightly':
build( build(
job: 'misc/status-im.github.io-update_env', job: 'misc/status-im.github.io-update_env',
parameters: [ parameters: [
@ -119,8 +120,16 @@ pipeline {
[name: 'DMG_URL', value: dmgUrl, $class: 'StringParameterValue'], [name: 'DMG_URL', value: dmgUrl, $class: 'StringParameterValue'],
[name: 'NIX_URL', value: appUrl, $class: 'StringParameterValue'] [name: 'NIX_URL', value: appUrl, $class: 'StringParameterValue']
] ]
) ); break
case 'release':
build(
job: 'misc/cn.status.im',
parameters: [
[name: 'APK_URL', value: apkUrl, $class: 'StringParameterValue'],
]
); break
} }
} }
} }
stage('Run e2e') { stage('Run e2e') {
when { expression { cmn.getBuildType() == 'nightly' } } when { expression { cmn.getBuildType() == 'nightly' } }