mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[CI] Add one retry to setup step (#66638)
This commit is contained in:
parent
58b77fcb34
commit
1c004e98d6
1 changed files with 12 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue