We installed and configured Check_MK to provide that type of higher level monitoring. That allowed one of the developers to write a small script that used the Jenkins REST api to count the number of build failures, and raise an alarm on the monitoring console if more than 3 of the last 5 builds failed.
He extended it further to read the threshold percentage from the job definition, so we could place an HTML comment in the job description to provide job specific thresholds if the default thresholds were not correct for that particular job. That also allowed us to have a single console which monitored many other attributes of the build systems (processor utilization, disc space, process count, network connectivity, etc.) Mark Waite On Fri, Feb 28, 2014 at 8:27 AM, <n...@eyequant.com> wrote: > Hi there, > > (I'm new to this list and not sure this is the right place for this > question. Apologies if not; if anyone knows a more appropriate list, I'd > appreciate pointers!) > > What I'm trying to do: Set up a project with email notifications that only > get sent if the build fails several times in a row. > > Why? I'm setting up some very simple smoke tests to monitor our production > setup: visit a url and confirm the presence of some CSS selector. The tests > themselves are resilient enough, but occasional network issues can cause > them to intermittently fail in the middle of the night, and I don't want to > wake our devs when that happens. > > If you're familiar with Pingdom's monitoring, that's pretty close to what > I want, but I'd like some more control over the checks. > > The closest I found in Jenkins was the email-ext > plugin<https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin>, > which allows a notification on "2nd Failure", which works great. However, > the "Fixed" notification triggers every on successful build that follows a > failed build-as it well should-whereas I want a trigger that only fires on > successful builds that follow *two* failed builds. > > Any pointers on how I can achieve what I want? > > Thanks in advance for reading! > Niko > > -- > 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. > -- Thanks! Mark Waite -- 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.