mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
This commit is contained in:
parent
203214fb74
commit
cfd530b75c
1 changed files with 4 additions and 1 deletions
|
@ -48,7 +48,10 @@ def call(label, Closure closure) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
closure()
|
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()) {
|
if (haveReachedMaxRetries()) {
|
||||||
print "Couldn't retry '${label}', have already reached the max number of retries for this build."
|
print "Couldn't retry '${label}', have already reached the max number of retries for this build."
|
||||||
throw ex
|
throw ex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue