You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by st...@apache.org on 2017/11/29 10:56:30 UTC

[maven-jenkins-env] 02/02: tweaks

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

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

commit 62f988c2bb60f4353258b7fb0e5e5a486935393e
Author: Stephen Connolly <st...@gmail.com>
AuthorDate: Wed Nov 29 10:56:22 2017 +0000

    tweaks
---
 vars/jenkinsNotify.groovy | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index 8c46042..bd39b73 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -19,14 +19,14 @@ def call(Map params = [:]) {
             messageSubject = "Build unstable in Jenkins: ${currentBuild.fullDisplayName}"
             messageBody = """See ${currentBuild.absoluteUrl}"""
             sendMail = true
-            messageTail = '\nFailing tests:\n${FAILED_TESTS}\n\nBuild log:\n${BUILD_LOG}'
+            messageTail = '\nBuild log:\n${BUILD_LOG}'
         break
         case "FAILURE":
             providers = [[$class: 'CulpritsRecipientProvider']]
             messageSubject = "Build failed in Jenkins: ${currentBuild.fullDisplayName}"
             messageBody = """See ${currentBuild.absoluteUrl}"""
             sendMail = true
-            messageTail = '\nFailing tests:\n${FAILED_TESTS}\n\nBuild log:\n${BUILD_LOG}'
+            messageTail = '\nBuild log:\n${BUILD_LOG}'
         break
         case "ABORTED":
             providers = [[$class: 'CulpritsRecipientProvider']]
@@ -65,9 +65,9 @@ def call(Map params = [:]) {
             }
         }
     }
-    messageBody = messageBody + messageTail
+    messageBody = messageBody + '\n${FAILED_TESTS}\n' + messageTail
     // send the mail
-    //if (sendMail) {
+    if (sendMail) {
         emailext body: messageBody, recipientProviders: providers, replyTo: 'dev@maven.apache.org', subject: messageSubject, to: 'notifications@maven.apache.org'
-    //}
+    }
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.