Subject line:
To display the committer(s) of the last build, you can put the following into the subject line anywhere you want. Do note that if multiple people have committed since the last build, multiple names will be shown, hence the
(space) in "%a "
.
${CHANGES, format="%a "}has/have committed the following changes
Or to display a list of culprits that broke the build
Build broken by ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, format="%c", changesFormat="%a "}
Unfortunately, if a culprit's name appears several times in commit messages, it will appear several times in the subject too.
SVN log in the email
To get the SVN log into the email, I use the following:
${CHANGES_SINCE_LAST_SUCCESS, reverse=true, format="<b>Changes for Build #%n</b><br>%c<br>", changesFormat="<br>[<a href='${JENKINS_URL}/user/%a/builds'>%a</a>] - (%r) %p<br> %m<br>"}
This was all pulled together from the Content Token Reference on-page help with lots of trial and error. Scroll to the bottom of your email-ext
configuration, and click the ?
icon in-line with Content Token Reference text (it may take a while to load)
Produces output similar to:
Changes for Build #123
[commiter_name] - (1234567) /svn/path/to/changed.files
Commit message here