The easiest way would be to use a groovy SCRIPT and do a loop on the build.previousBuild until you find the build you are looking for. If you want to use it in the email subject, you'd want to have the last line in the script be the content you want.
${SCRIPT, script="last-successful-build-info.groovy"} Check out the wiki page for email-ext for more info. On Sun, Mar 10, 2013 at 5:10 AM, olga <osu...@gmail.com> wrote: > Hello, > > I have set email notifications using Email-ext plugin when job status is > success or failure. When there is continous repated failure, I wanted to > add last build successful time in the email subject. Any help is > appreciated. > > Eg: > > build# 4 - Fail - 1/13/2013 - Add "last success on 1/11/2013" to > email subject > build# 3 - Fail - 1/12/2013 - Add "last success on 1/11/2013" to > email subject > build# 2 - Success - 1/11/2013 > build# 1 - Success - 1/10/2013 > > Thanks, > Olga > > -- > 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/groups/opt_out. > > > -- Website: http://earl-of-code.com -- 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/groups/opt_out.