From df154df1ba96e266d65b32bd50b051d404bea371 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Tue, 13 Jul 2021 12:37:19 +0200 Subject: [PATCH] Try to work around "expected to call cern.root.pipeline.GenericBuild.sendEmails but wound up catching emailext" --- src/cern/root/pipeline/GenericBuild.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cern/root/pipeline/GenericBuild.groovy b/src/cern/root/pipeline/GenericBuild.groovy index 530c8a2..32ffadb 100644 --- a/src/cern/root/pipeline/GenericBuild.groovy +++ b/src/cern/root/pipeline/GenericBuild.groovy @@ -133,7 +133,8 @@ class GenericBuild implements Serializable { * Sends an email report about the current build to a set of participants. * The email is generated from the template in resources/jenkins-pipeline-email-html.template. */ - @NonCPS + /*@NonCPS -- AXEL: cannot use as this calls `emailext`, see + "Use of Pipeline steps from @NonCPS" at Use of Pipeline steps from @NonCPS */ void sendEmails() { def binding = ['build': script.currentBuild.rawBuild, 'rooturl': Jenkins.getActiveInstance().getRootUrl(),