skip email on transient build failures

"David J. Biesack" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
It's not uncommon for our CC builds to fail for transient reasons
(usually it is timeouts from Maven central repository, despite our use of Artifactory).
Without changing anything, the next rebuild succeeds. The developers then need to
investigate the failure, which takes time and most often is wasted because
the transient problem is gone.

I propose an enhancement to the <email> publisher to only send mail 
on the second consecutive failure. That is, do not email on the first
failure and if the next build succeeds, do not send a success email.
Only send mail if a rebuild after failure also fails.

We already use 

               reportsuccess="fixes"
               spamwhilebroken="false"

I think a new child element would be the most flexible configuration, i.e.

  <ignoreFirst>emailaddress</ignorefirst> (cardinality 0 .. *)

would allow some recipients to have this filtering and others
receive the failure email unconditionally. An optional attribute
would allow someone to ignore the first n failures:

  <ignoreFirst n="2">emailaddress</ignorefirst>

thanks for considering.

-- 
David J. Biesack, SAS
SAS Campus Dr. Cary, NC 27513
www.sas.com    (919) 531-7771

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.