Skip to content

Commit

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

0 comments on commit 3686df4

Please sign in to comment.