From bb3021dd4c630d4ee3dfdc6f71d00a9fb29b97dc Mon Sep 17 00:00:00 2001 From: weissmall Date: Thu, 14 Dec 2023 21:56:51 +0300 Subject: [PATCH] Throw after setting failure check status --- helpers.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers.groovy b/helpers.groovy index c0f7869..a5856f6 100644 --- a/helpers.groovy +++ b/helpers.groovy @@ -45,6 +45,7 @@ def stageWithChecks(String name, Closure body) { } catch (error) { sh "echo Stage $name failed with error: $error" setFailureCheck(name, name) + throw error } } }