[maven-jenkins-env] branch master updated: Revert "Log unique commits"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-jenkins-env] branch master updated: Revert "Log unique commits"

rfscholte
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 22a4d1a  Revert "Log unique commits"
22a4d1a is described below

commit 22a4d1a7af29ef12db0242de180096c5093a30f5
Author: rfscholte <[hidden email]>
AuthorDate: Sat Sep 14 18:51:20 2019 +0200

    Revert "Log unique commits"
---
 vars/jenkinsNotify.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index 37f056d..bc8cd9a 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -94,7 +94,7 @@ def call(Map params = [:]) {
     } else {
         messageBody = messageBody + "\n\nChanges:\n";
         for (def changeSet in currentBuild.changeSets) {
-            for (def change in changeSet.unique{ a, b -> a.commitId <=> b.commitId }) {
+            for (def change in changeSet) {
                 messageBody = messageBody + "\n* ${change.msg.trim().replaceAll('\n','\n  ')}"
                 authors += change.author.id
             }