How can I get the SVN log entry in Jenkins when sending email -


i'm trying create automated build @ work using jenkins. we're using svn version control. when build successful send email team saying... person x has committed following changes.

how can include committers name , last svn log entry in body of email? i'm using jenking email-ext plugin.

thanks!

subject line:

to display committer(s) of last build, can put following subject line anywhere want. note if multiple people have committed since last build, multiple names shown, hence (space) in "%a ".

${changes, format="%a "}has/have committed following changes

or display list of culprits broke build

build broken ${changes_since_last_success, reverse=true, format="%c", changesformat="%a "}

unfortunately, if culprit's name appears several times in commit messages, appear several times in subject too.

svn log in email

to svn log email, use following:

${changes_since_last_success, reverse=true, format="<b>changes build #%n</b><br>%c<br>", changesformat="<br>[<a href='${jenkins_url}/user/%a/builds'>%a</a>] - (%r) %p<br> %m<br>"}

this pulled content token reference on-page lots of trial , error. scroll bottom of email-ext configuration, , click ? icon in-line content token reference text (it may take while load)

produces output similar to:


changes build #123

[commiter_name] - (1234567) /svn/path/to/changed.files
commit message here



Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -