[7.x] Retry git clone up to 8 times before failing a build (#5… (#50790)

This commit is contained in:
Brian Seeders 2019-11-15 14:46:51 -05:00 committed by GitHub
parent 7e96126522
commit 921fa56659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",