mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[7.x] Retry git clone up to 8 times before failing a build (#5… (#50790)
This commit is contained in:
parent
7e96126522
commit
921fa56659
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