Update pods only if installation fails.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Igor Mandrigin 2019-01-21 16:13:57 +01:00
parent 0ce74b1da9
commit a14076def7
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B

View File

@ -57,11 +57,17 @@ def prep(type = 'nightly') {
/* generate ios/StatusIm.xcworkspace */
if (env.BUILD_PLATFORM == 'ios') {
dir('ios') {
try {
sh 'pod install --silent'
} catch (Exception ex) {
println "pod installation failed, trying to upgrade the repo"
/* only if pod install fails, we try to upgrade the repo */
podUpdate()
sh 'pod install --silent'
}
}
}
}
def leinBuild(platform) {
sh "lein prod-build-${platform}"