mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[CI] Don't retry steps after a build has been aborted or timed out (#96600)
This commit is contained in:
parent
aab675b1ba
commit
65dc108575
1 changed files with 4 additions and 1 deletions
|
@ -48,7 +48,10 @@ def call(label, Closure closure) {
|
|||
|
||||
try {
|
||||
closure()
|
||||
} catch (ex) {
|
||||
} catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException ex) {
|
||||
// If the build was aborted, don't retry the step
|
||||
throw ex
|
||||
} catch (Exception ex) {
|
||||
if (haveReachedMaxRetries()) {
|
||||
print "Couldn't retry '${label}', have already reached the max number of retries for this build."
|
||||
throw ex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue