mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[7.5] Retry git clone up to 8 times before failing a build (#5… (#50791)
This commit is contained in:
parent
f68a07222f
commit
f313cc2bda
1 changed files with 11 additions and 1 deletions
|
@ -127,7 +127,17 @@ def jobRunner(label, useRamDisk, closure) {
|
|||
}
|
||||
}
|
||||
|
||||
def scmVars = checkout scm
|
||||
def scmVars
|
||||
|
||||
// Try to clone from Github up to 8 times, waiting 15 secs between attempts
|
||||
retry(8) {
|
||||
try {
|
||||
scmVars = checkout scm
|
||||
} catch (ex) {
|
||||
sleep 15
|
||||
throw ex
|
||||
}
|
||||
}
|
||||
|
||||
withEnv([
|
||||
"CI=true",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue