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:31:49 UTC

[maven-jenkins-env] branch master updated: send email if authors exist

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 367478a  send email if authors exist
367478a is described below

commit 367478ad52841e9b86937c392179d05290d1967e
Author: tibordigana <ti...@apache.org>
AuthorDate: Fri Jan 24 18:31:35 2020 +0100

    send email if authors exist
---
 vars/jenkinsNotify.groovy | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index 97e71d1..c3661b4 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -105,6 +105,7 @@ def call(Map params = [:]) {
     for (def author in authors) {
         sendMail &= !author.matches('(.*)github(.*)')
     }
+    sendMail &= !authors.isEmpty()
     if (sendMail) {
         messageBody = messageBody + '\n${FAILED_TESTS}\n' + messageTail
         println("Sending email ...")