Skip to content

Commit

Permalink
process items
Browse files Browse the repository at this point in the history
Signed-off-by: Darin Pope <[email protected]>
  • Loading branch information
darinpope committed Nov 1, 2021
1 parent 8131263 commit 6ef81ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vars/jiraProcessChangeLogItems.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
def call(Map config=[:]) {
def changeLogItems = currentBuild.getBuildCauses()[0]?.event?.changelog?.items
if(0 == changeLogItems.size()) {
println 'no items found in changelog'
return
}
println changeLogItems.size()
changeLogItems.each {
println it.fromString + '; ' + it.toString
}
}

0 comments on commit 6ef81ee

Please sign in to comment.