This is an automated email from the ASF dual-hosted git repository. benw pushed a commit to branch javax in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit a3d29dab94dee0d236aeac42892a5b3a1ce1cd08 Author: Ben Weidig <[email protected]> AuthorDate: Mon Apr 6 13:05:43 2026 +0200 TAP5-2819: Jenkinsfile changelog generation improved --- Jenkinsfile | 15 ++++----------- Jenkinsfile.integration-variants | 15 ++++----------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 89bd2cd42..cd28d6309 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,21 +112,14 @@ pipeline { // MAIL NOTIFICATIONS def getChangeLog() { - def log = "" def changeSets = currentBuild.changeSets - if (changeSets.isEmpty()) { return "No changes recorded (Manual build or no new commits)." } - - for (int i = 0; i < changeSets.size(); i++) { - def entries = changeSets[i].items - for (int j = 0; j < entries.length; j++) { - def entry = entries[j] - log += "[${entry.author}] ${entry.msg}\n" - } - } - return log + return changeSets + .collectMany { it.items as List } + .collect { "[${it.author}] ${it.msg}" } + .join('\n') } def sendMail(buildStatus) { diff --git a/Jenkinsfile.integration-variants b/Jenkinsfile.integration-variants index 192f358f5..360434c3b 100644 --- a/Jenkinsfile.integration-variants +++ b/Jenkinsfile.integration-variants @@ -109,21 +109,14 @@ pipeline { // MAIL NOTIFICATIONS def getChangeLog() { - def log = "" def changeSets = currentBuild.changeSets - if (changeSets.isEmpty()) { return "No changes recorded (Manual build or no new commits)." } - - for (int i = 0; i < changeSets.size(); i++) { - def entries = changeSets[i].items - for (int j = 0; j < entries.length; j++) { - def entry = entries[j] - log += "[${entry.author}] ${entry.msg}\n" - } - } - return log + return changeSets + .collectMany { it.items as List } + .collect { "[${it.author}] ${it.msg}" } + .join('\n') } def sendMail(buildStatus) {
