diff --git a/ci/mobile.groovy b/ci/mobile.groovy index 0b437bb737..deb69e749d 100644 --- a/ci/mobile.groovy +++ b/ci/mobile.groovy @@ -57,8 +57,14 @@ def prep(type = 'nightly') { /* generate ios/StatusIm.xcworkspace */ if (env.BUILD_PLATFORM == 'ios') { dir('ios') { - podUpdate() - sh 'pod install --silent' + 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' + } } } }