Thursday 15 May 2014

jenkins - Configuring Jelly Script to show all changes since last successful build -


I want to replace the default jelly script that comes with Jenkins email-ALL plugin, it is currently between each build The SVN will show all the changes made in the repo, but it will be better to show all the changes between each successful build. I.e. <1> build 1, successful: Email sent 1 build 2 for the committed team, failed: sent for email committer, commit to commit commit commit 1 commit 2 build 1 build Is successful, sent to the email team, show 1 & amp; In the form of committed 2

is the current method, where creation 3 information only opposes to showing 2 committed

template pulls data with the following:

  & lt; J: set var = "changeSet" value = "$ {build.changeSet}" />   

But to return to this last successful creation to make this change? Switch to email-ext Groove email templates after possible

thanks

.

Then, copy the sample and add this script around the line 30.

  def lastSuccessfulBuild = project.lastSuccessfulBuild (int i = lastSuccessfulBuild.number; I & lt; = build.number; i ++) {def changeSet = project.getBuildByNumber (i). ChangeSet}    

No comments:

Post a Comment