You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/01/24 09:53:36 UTC
[maven-jenkins-env] branch master updated: Revert "GitHub emails
should not trigger notifier which otherwise breaks the build" Due to
"org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
Scripts not permitted to use staticMethod
org.codehaus.groovy.runtime.DefaultGroovyMethods and java.lang.Boolean"
This is an automated email from the ASF dual-hosted git repository.
rfscholte 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 246eca1 Revert "GitHub emails should not trigger notifier which otherwise breaks the build" Due to "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods and java.lang.Boolean"
246eca1 is described below
commit 246eca1bbc82bd777691ff1ca3bebe562991f8a9
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Jan 24 10:53:28 2020 +0100
Revert "GitHub emails should not trigger notifier which otherwise breaks the build"
Due to "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods and java.lang.Boolean"
This reverts commit 40b0be00be0d67a845c11133467fbf15baff320c.
---
vars/jenkinsNotify.groovy | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index 3acea5e..bc8cd9a 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -102,9 +102,7 @@ def call(Map params = [:]) {
messageBody = messageBody + "\n"
}
println("The authors of changes ${authors.unique()}.")
- for (def author in authors) {
- sendMail &= !author.contains('github')
- }
+ if (authors.contains('github')) sendMail = false
if (sendMail) {
messageBody = messageBody + '\n${FAILED_TESTS}\n' + messageTail
println("Sending email ...")