def call() { def changeText = StringBuilder.newInstance() for (changeSet in currentBuild.changeSets) { for (item in changeSet.items) { def shortCommitId = item.commitId.substring(0,12) changeText.append("Commit ${shortCommitId} by *${item.author}*, ${item.msg}\n") } } if (changeText.length() == 0) { changeText.append("No Changes Identified.") } return changeText.toString()}