jenkinsci / last-changes-plugin

https://plugins.jenkins.io/last-changes
https://plugins.jenkins.io/last-changes/
31 stars 31 forks source link

question - can you help me to add this to the email template? #78

Open mcote-57 opened 4 years ago

mcote-57 commented 4 years ago

I would like to include the list of changes in my email template. I am using the groovy.html.template from the emailext plugin. When I try just adding the lines of code def changeSets = LastChanges.getLastChangesPublisher "LAST_SUCCESSFUL_BUILD", "SIDE", "LINE", true, true, "", "", "", "", "" publisher.publishLastChanges() def changes = publisher.getLastChanges() if(changes != null) { to the template, it complains, "Exception raised during template rendering: No such property: LastChanges for class: SimpleTemplateScript8 groovy.lang.MissingPropertyException: No such property: LastChanges for class: "

AbhiLitmus commented 2 years ago

@mcote-57 You need to add "Last Change" plugin.