Skip to content

Commit

Permalink
[CI] Add one retry to setup step (#66638)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders authored May 15, 2020
1 parent 58b77fc commit 1c004e9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vars/kibanaPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,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() {
Expand Down

0 comments on commit 1c004e9

Please sign in to comment.