Skip to content

Commit 1fa9779

Browse files
committed
[CI] Add one retry to setup step (#66638)
1 parent 5a6577f commit 1fa9779

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

vars/kibanaPipeline.groovy

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,18 @@ def bash(script, label) {
252252
}
253253

254254
def doSetup() {
255-
runbld("./test/scripts/jenkins_setup.sh", "Setup Build Environment and Dependencies")
255+
retryWithDelay(2, 15) {
256+
try {
257+
runbld("./test/scripts/jenkins_setup.sh", "Setup Build Environment and Dependencies")
258+
} catch (ex) {
259+
try {
260+
// Setup expects this directory to be missing, so we need to remove it before we do a retry
261+
bash("rm -rf ../elasticsearch", "Remove elasticsearch sibling directory, if it exists")
262+
} finally {
263+
throw ex
264+
}
265+
}
266+
}
256267
}
257268

258269
def buildOss() {

0 commit comments

Comments
 (0)