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


The following commit(s) were added to refs/heads/master by this push:
     new 548ea64  Add another layer of unwrapping
548ea64 is described below

commit 548ea646014c38278658ed71376884321a6cc505
Author: Stephen Connolly <stephen.alan.conno...@gmail.com>
AuthorDate: Tue Nov 28 19:31:30 2017 +0000

    Add another layer of unwrapping
---
 vars/jenkinsNotify.groovy | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index dcb5475..a8efeed 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -32,8 +32,10 @@ def call(Map params = [:]) {
         messageBody = messageBody+"\n\nNo changes.\n";
     } else {
         messageBody = messageBody + "\n\nChanges:\n";
-        for (def change in currentBuild.changeSets) {
-            messageBody = messageBody + "\n* ${change.msg}"
+        for (def changeSet in currentBuild.changeSets) {
+            for (def change in changeSet) {
+                messageBody = messageBody + "\n* ${change.msg}"
+            }
         }
     }
     emailext body: messageBody, recipientProviders: providers, replyTo: 
'd...@maven.apache.org', subject: messageSubject, to: 
'notificati...@maven.apache.org'

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

Reply via email to