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
1 changed files with 8 additions and 2 deletions

View File

@ -57,8 +57,14 @@ def prep(type = 'nightly') {
/* generate ios/StatusIm.xcworkspace */ /* generate ios/StatusIm.xcworkspace */
if (env.BUILD_PLATFORM == 'ios') { if (env.BUILD_PLATFORM == 'ios') {
dir('ios') { dir('ios') {
podUpdate() try {
sh 'pod install --silent' 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'
}
} }
} }
} }