You could do this with email-ext and a pre-send script. If you set it up such that the email is only sent if the last 5 builds were failures (you can get the current build number and then back track and look at the preceding builds). Then you could cancel sending the email if there were less than 5 failed builds. The other way to do it would be to just have a separate job that is kicked off after that one that does something similar. You'll want to look at the AbstractBuild java docs to see what is available in the API.
slide On Tue, Oct 2, 2012 at 1:38 PM, Will K <[email protected]> wrote: > I am using Jenkins to automate selenium testing. I need to have a way to > send email notifications after 5 failed build attempts. I have installed > the groovy post build plugin but, I don't know how to identify failed > attempts, record failed attempts, or notify after n number of failed > attempts. Please help. -- Website: http://earl-of-code.com
