Mercurial > hg > autobot
changeset 268:4c856644a2f1
add a stub status thing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 30 Dec 2011 16:18:25 -0800 |
parents | afa37f032c39 |
children | 8f9862788dce |
files | autobot/status/__init__.py autobot/status/autolog.py |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autobot/status/autolog.py Fri Dec 30 16:18:25 2011 -0800 @@ -0,0 +1,26 @@ +""" +report to autolog: +https://wiki.mozilla.org/Auto-tools/Projects/Autolog +http://brasstacks.mozilla.com/autolog/ +""" + +# XXX stub + +from buildbot.interfaces import IStatusReceiver +from buildbot.status.base import StatusReceiverMultiService +from zope.interface import implements + +class AutologStatus(StatusReceiverMultiService): + # see http://buildbot.net/buildbot/docs/0.8.5/reference/buildbot.status.base.StatusReceiver-class.html + + implements(IStatusReceiver) + + def __init__(self): + StatusReceiverMultiService.__init__(self) + + def buildFinished(self, builderName, build, results): + # XXX stub + import os + f = file('/home/jhammel/foo.txt', 'w') + print >> f, os.environ['HOME'] + f.close()