Protocultura.cl

Sending Buildbot status results to twitter.
Published: 2009-02-08
Category: Scribbles
Tags: python, buildbot, twitter, software
Language: [English]
page views: 454




Just finished a little contribution for getting buildbot to work with twitter. All it does is report the result of builds to followers of the twitter buildbot twitter user. You can get it from http://protocultura.cl/hg/buildbot-twitter/file/tip

It's based on the mail.py class that comes with Buildbot. For this to work correctly you will need to:

  • Create a twitter account. I guess best practice is to create a seperate account for this
  • Install python-twitter (hint: easy_install python-twitter)
  • Make the bbtwitter.py file available to your buildbot.
  • Add the following to your master.cfg somewhere after: c['status'] = []
import bbtwitter
c['status'].append(bbtwitter.TwitterNotifier("Your-Twitter-user", "Your-Twitter-password"))
It works for me with buildbot 0.7.9. I have only tested it in the sense that it now works for me :). As always YMMV.



Comments
No comments yet. Comments to posts older then a month are not allowed, due to comment-spam, Sorry.

Internal Nav


Data Feeds


Quote

¡Te lo juro por el snoopy!
By 'El secdleto de la tlompeta'


Login