Update pods only if installation fails.
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
0ce74b1da9
commit
a14076def7
|
@ -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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue