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

This commit is contained in:
Brian Seeders 2020-05-15 16:02:58 -04:00 committed by GitHub
parent 6e098a3f2e
commit 6ef85ff9de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,7 +252,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() {