Skip to content

Instantly share code, notes, and snippets.

@rmkanda
Created September 23, 2021 05:49
Show Gist options
  • Save rmkanda/d3036b14623e19f93528fa992fc89060 to your computer and use it in GitHub Desktop.
Save rmkanda/d3036b14623e19f93528fa992fc89060 to your computer and use it in GitHub Desktop.
def changeLogSets = currentBuild.changeSets
for (int i = 0; i < changeLogSets.size(); i++) {
println changeLogSets[i].kind
def entries = changeLogSets[i].items
for (int j = 0; j < entries.length; j++) {
def entry = entries[j]
echo "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment