[CI] Add one retry to setup step (#66638) (#66750)

This commit is contained in:
Brian Seeders 2020-05-15 16:02:54 -04:00 committed by GitHub
parent 57937ca8cc
commit 5c2ca4e6e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,18 @@ def bash(script, label) {
}
def doSetup() {
runbld("./test/scripts/jenkins_setup.sh", "Setup Build Environment and Dependencies")
retryWithDelay(2, 15) {
try {
runbld("./test/scripts/jenkins_setup.sh", "Setup Build Environment and Dependencies")
} catch (ex) {
try {
// Setup expects this directory to be missing, so we need to remove it before we do a retry
bash("rm -rf ../elasticsearch", "Remove elasticsearch sibling directory, if it exists")
} finally {
throw ex
}
}
}
}
def buildOss() {