Skip to content

Commit

Permalink
[CI] Add one retry to setup step (elastic#66638)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed May 15, 2020
1 parent 5a6577f commit 1fa9779
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 @@ -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() {
Expand Down

0 comments on commit 1fa9779

Please sign in to comment.