Thomas Freudenberg

Confessions of a caffeine addict

Twitter Publisher for CruiseControl.NET

Some weeks ago I posted a CC.NET task which pushes build results to a blog using the MetaWeblogAPI. This might be a feasable solution for projects which sources aren’t updated that often. Otherwise that blog would be really cluttered, and you won’t be able to keep track of all the build results.

Several month ago a new social networking site started called Twitter. It offers a kind of micro-blogging service, allowing its users to send text-only stati, up to 140 characters long. Whenever you update your status, it is delivered instantly to other users who have put you to their “friends” list. Though you can receive the updates of your friends via an RSS feed, it is more common to either use Twitter’s website or a desktop client such as TeleTwitter. Additionally, Twitter offers a RESTful API.

Therefore it was pretty obvious to write a CC.NET task which announces new build results on Twitter. The project manager creates a special Twitter account and configures CC.NET to post build results as updates for that user. The developers then just have to add that user to their friend list, and will get the announcements in the Twitter front-end of their choice.

The attached ZIP file contains both the sources and the compiled assembly, which you have to dump into CC.NET’s server directory. The configuration of the task is pretty easy, just specify the user and the password of the Twitter account.

<publishers>
    ...
    <twitter>
        <user>username</user>
        <password>password</password>
    </twitter>
    ...

Comments

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# June 17, 2007 3:35 PM

Simone said:

Wow... that is great!!

# June 17, 2007 3:35 PM

CodeClimber said:

Twitter Publisher for CC.NET

# June 17, 2007 4:42 PM

CCNetConfig said:

Twitter Publisher Support

# June 17, 2007 8:04 PM

jayson knight said:

A lot of folks have been saying things like "what's the big deal about Twitter"...it's ideas like this which will quickly prove the usefulness of a service like Twitter (I've had a couple of ideas, mainly more along the lines of office productivity type stuff), however Twitter itself needs to become more stable before anyone can start staking anything even semi-mission critical in it.

Well done!

# June 18, 2007 12:00 AM

Keyvan Nayyeri said:

Very good job, Thommi :-)

# June 18, 2007 5:02 AM

Keyvan Nayyeri said:

I never had used CruiseControl.NET for TFS until last week when Thomas Freudenburg did a very nice job

# June 22, 2007 1:31 AM

CCNetConfig said:

CCNetPlugins - New Publishers

# April 28, 2008 10:55 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)