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,18 +109,27 @@ pipeline {
} }
}
stage('Publish') {
when { expression { cmn.getBuildType() == 'nightly' } }
steps {
build(
job: 'misc/status-im.github.io-update_env',
parameters: [
[name: 'APK_URL', value: apkUrl, $class: 'StringParameterValue'],
[name: 'IOS_URL', value: ipaUrl, $class: 'StringParameterValue'],
[name: 'DMG_URL', value: dmgUrl, $class: 'StringParameterValue'],
[name: 'NIX_URL', value: appUrl, $class: 'StringParameterValue']
]
)
}
steps { script {
switch (cmn.getBuildType()) {
case 'nightly':
build(
job: 'misc/status-im.github.io-update_env',
parameters: [
[name: 'APK_URL', value: apkUrl, $class: 'StringParameterValue'],
[name: 'IOS_URL', value: ipaUrl, $class: 'StringParameterValue'],
[name: 'DMG_URL', value: dmgUrl, $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') {
when { expression { cmn.getBuildType() == 'nightly' } }