post diawi link to ghcmgr for ios

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-03-08 11:32:15 +01:00 committed by Roman Volosovskyi
parent 43bd6d159a
commit f7ab70ad5a
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,11 @@ utils = load 'ci/utils.groovy'
**/
def buildObj(success) {
def pkg_url = env.PKG_URL
/* a bare ipa file is not installable on iOS */
if (env.BUILD_PLATFORM == 'ios') {
pkg_url = env.DIAWI_URL
}
/* assemble build object valid for ghcmgr */
return [
id: env.BUILD_DISPLAY_NAME,
@ -17,7 +22,7 @@ def buildObj(success) {
platform: env.BUILD_PLATFORM + (utils.getBuildType() == 'e2e' ? '-e2e' : ''),
duration: utils.buildDuration(),
url: currentBuild.absoluteUrl,
pkg_url: env.PKG_URL,
pkg_url: pkg_url,
]
}