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: "
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: "