jenkinsci / jenkinsci/last-changes-plugin
question - can you help me to add this to the email template?
- Dominant language
- Java
- Stars
- 32
- Forks
- 32
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 1
Description
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: "
Contributor guide
Research direction
Start by tracing how groovy.html.template is rendered through the emailext plugin and how the LastChanges plugin is expected to expose its values. Reproduce the reported MissingPropertyException with the supplied template snippet. Done means establishing a supported way to include the change list, or documenting that this template context cannot access it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100