You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2020/01/24 17:59:52 UTC

[maven-jenkins-env] branch master updated: fixed Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods and java.lang.Boolean java.lang.Boolean

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-env.git


The following commit(s) were added to refs/heads/master by this push:
     new 7644fe4  fixed Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods and java.lang.Boolean java.lang.Boolean
7644fe4 is described below

commit 7644fe4f2e18dcc8a90b6902461527a8c5c8e874
Author: tibordigana <ti...@apache.org>
AuthorDate: Fri Jan 24 18:59:09 2020 +0100

    fixed Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods and java.lang.Boolean java.lang.Boolean
---
 vars/jenkinsNotify.groovy | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index c3661b4..1f695cd 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -103,9 +103,11 @@ def call(Map params = [:]) {
     }
     println("The authors of changes ${authors.unique()}.")
     for (def author in authors) {
-        sendMail &= !author.matches('(.*)github(.*)')
+		if (author.matches('(.*)github(.*)')) sendMail = false
     }
-    sendMail &= !authors.isEmpty()
+    
+    if (authors.isEmpty()) sendMail = false
+    
     if (sendMail) {
         messageBody = messageBody + '\n${FAILED_TESTS}\n' + messageTail
         println("Sending email ...")