Commit graph

7 commits

Author SHA1 Message Date
Michael Nutt
b94280c15c Change from notification after_success and after_failure to change
Also removes the extra db field; instead, just send Prior as part of the Request.

This reverts commit e8b993e7da.
2014-12-30 13:25:14 -05:00
Michael Nutt
e8b993e7da Add support for after_success and after_failure to email notifications
This allows you to restrict email notifications to only be sent after the build changes from success to failure or failure to success.  It errs on the side of sending the notification; if the build is in another state (hung, for instance) or there was no previous build on the branch the email will also be sent.

Since the notify plugin shouldn't really have any responsibility for querying the database to find the previous commit's status, we store it on the commit when we save it.
2014-12-30 11:37:57 -05:00
Brad Rydzewski
cbd5ef2874 altered mysql code to use mediumblob instead of blob to avoid 64k limit 2014-10-26 10:17:17 -07:00
Brad Rydzewski
f6cbb7244b forgot to remove setup.go file in migration package 2014-10-22 00:26:52 -07:00
Brad Rydzewski
7009778176 added token to post-commit hooks 2014-10-22 00:13:47 -07:00
Brad Rydzewski
6b721f5b98 added unit tests for postgres and mysql 2014-09-30 23:30:42 -07:00
Brad Rydzewski
565277bd00 more work on worker integration 2014-09-28 20:21:02 -07:00