From 7af02b2d8c61f27ceae3c7619ecd92c70b907a48 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}") } } }