ci: use Diawi URL for iOS only if it's set
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5e6ab5d0d9
commit
72823c2c3e
|
@ -11,7 +11,7 @@ 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.TARGET == 'ios') {
|
||||
if (env.TARGET == 'ios' && env.DIAWI_URL != "") {
|
||||
pkg_url = env.DIAWI_URL
|
||||
}
|
||||
/* assemble build object valid for ghcmgr */
|
||||
|
|
|
@ -185,7 +185,7 @@ def publishReleaseMobile(path='pkg') {
|
|||
def found = findFiles(glob: "${path}/*")
|
||||
if (found.size() == 0) {
|
||||
sh "ls ${path}"
|
||||
error("No file to release in ${path}")
|
||||
error("No file to release in ${path}")
|
||||
}
|
||||
publishRelease(
|
||||
version: ghcmgr.utils.getVersion(),
|
||||
|
|
|
@ -63,6 +63,7 @@ def uploadToDiawi() {
|
|||
withCredentials([
|
||||
string(credentialsId: 'diawi-token', variable: 'DIAWI_TOKEN'),
|
||||
]) {
|
||||
/* This can silently fail with 'File is not processed.' */
|
||||
nix.shell(
|
||||
'bundle exec --gemfile=fastlane/Gemfile fastlane ios upload_diawi',
|
||||
keep: ['FASTLANE_DISABLE_COLORS', 'DIAWI_TOKEN'],
|
||||
|
|
Loading…
Reference in New Issue