Skip to content

Commit

Permalink
Try to work around "expected to call cern.root.pipeline.GenericBuild.…
Browse files Browse the repository at this point in the history
…sendEmails but wound up catching emailext"
  • Loading branch information
Axel-Naumann committed Jul 13, 2021
1 parent 828da02 commit df154df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cern/root/pipeline/GenericBuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit df154df

Please sign in to comment.