Hi Jim, This is what I used before I submitted the PR, just put the following as a system groovy script build step..
import hudson.model.* /////////////////////////////////////////////////////////////////////////////////////////////////// // calculate all change lists and commiters of all changelists up until the last successful build /////////////////////////////////////////////////////////////////////////////////////////////////// StringBuffer changeListBuffer = new StringBuffer(); AbstractBuild<?, ?> currentBuild = build; while( currentBuild!=null && currentBuild.getResult()!=Result.SUCCESS ) { def previousBuildCS = currentBuild.getChangeSet() if(previousBuildCS.history) { for( def entry : previousBuildCS.history ) { changeListBuffer.append( "Change <b>" + String.valueOf(entry.change.changeNumber) + "</b> by <b>" + entry.change.user + "</b> : <i>" + entry.change.description + "</i><br>" ) } } currentBuild = currentBuild.getPreviousBuild(); } def immutableString = changeListBuffer.toString().replace("\n","<br>") def paBrokenChangeLists = new ParametersAction([ new StringParameterValue("P4_BROKEN_CHANGELISTS", immutableString) ] ) build.addAction(paBrokenChangeLists) then just put $P4_BROKEN_CHANGELISTS in your email content, you can add the date in the script also but I didn't need that. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.