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 2019/08/02 19:49:54 UTC
[maven-jenkins-lib] branch master updated: [improvement]
currentBuild.changeSets can be referenced as changes
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-lib.git
The following commit(s) were added to refs/heads/master by this push:
new 98c27c1 [improvement] currentBuild.changeSets can be referenced as changes
98c27c1 is described below
commit 98c27c172532867710610ed581ed8cda091acfc9
Author: tibordigana <ti...@apache.org>
AuthorDate: Fri Aug 2 21:49:43 2019 +0200
[improvement] currentBuild.changeSets can be referenced as changes
---
vars/asfMavenTlpPlgnBuild.groovy | 2 +-
vars/asfMavenTlpStdBuild.groovy | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index 6e04081..f7bc15a 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -100,7 +100,7 @@ def call(Map params = [:]) {
}
stage("Notifications") {
def changes = currentBuild?.changeSets
- def authors = !changes || changes.isEmpty() ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+ def authors = !changes || changes.isEmpty() ? [] : changes.last().toList().collect { it.author.toString() }.unique()
println("The author of the last change: ${authors}")
if (!changes || !authors.contains('github')) jenkinsNotify()
}
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 6288337..523f58f 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -180,7 +180,7 @@ def call(Map params = [:]) {
}
stage("Notifications") {
def changes = currentBuild?.changeSets
- def authors = !changes || changes.isEmpty() ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+ def authors = !changes || changes.isEmpty() ? [] : changes.last().toList().collect { it.author.toString() }.unique()
println("The author of the last change: ${authors}")
if (!changes || !authors.contains('github')) jenkinsNotify()
}