From 2a08004ca0e3de16065a7e49e6012f3f7bbf2766 Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Wed, 4 Nov 2020 10:45:12 -0500 Subject: [PATCH] [CI] Move notifyOnError to fix in-progress alerts for ciGroups (#82506) --- vars/kibanaPipeline.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vars/kibanaPipeline.groovy b/vars/kibanaPipeline.groovy index 3b5f2f55cc4e6..2eca8d1deedcc 100644 --- a/vars/kibanaPipeline.groovy +++ b/vars/kibanaPipeline.groovy @@ -109,16 +109,16 @@ def withFunctionalTestEnv(List additionalEnvs = [], Closure closure) { def functionalTestProcess(String name, Closure closure) { return { - withFunctionalTestEnv(["JOB=${name}"], closure) + notifyOnError { + withFunctionalTestEnv(["JOB=${name}"], closure) + } } } def functionalTestProcess(String name, String script) { return functionalTestProcess(name) { - notifyOnError { - retryable(name) { - runbld(script, "Execute ${name}") - } + retryable(name) { + runbld(script, "Execute ${name}") } } }