[Buildbot-commits] buildbot/buildbot/status mail.py,1.37,1.38
Brian Warner
warner at users.sourceforge.net
Tue Apr 29 20:21:25 UTC 2008
Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30728/buildbot/status
Modified Files:
mail.py
Log Message:
[project @ MailNotifier: add mode=passing. Closes #169]
Original author: warner at lothar.com
Date: 2008-04-29 16:04:09+00:00
Index: mail.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/mail.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- mail.py 22 Mar 2008 22:15:10 -0000 1.37
+++ mail.py 29 Apr 2008 20:21:22 -0000 1.38
@@ -90,6 +90,7 @@
@param mode: one of:
- 'all': send mail about all builds, passing and failing
- 'failing': only send mail about builds which fail
+ - 'passing': only send mail about builds which succeed
- 'problem': only send mail about a build which failed
when the previous build passed
@@ -199,6 +200,8 @@
if self.mode == "failing" and results != FAILURE:
return
+ if self.mode == "passing" and results != SUCCESS:
+ return
if self.mode == "problem":
if results != FAILURE:
return
@@ -220,6 +223,8 @@
text += "The Buildbot has finished a build"
elif self.mode == "failing":
text += "The Buildbot has detected a failed build"
+ elif self.mode == "passing":
+ text += "The Buildbot has detected a passing build"
else:
text += "The Buildbot has detected a new failure"
text += " of %s on %s.\n" % (name, projectName)
More information about the Commits
mailing list