A Campfire plugin for Hudson

Our last OSLD resulted in a new hudson plugin: a build notifier for Campfire. Right now it is pretty simple and just posts the last build result in a chat room:
Campfire-Notification

You can configure your account data and the room to join in the job config page under Post Build actions:
Hudson-Campfire
But there is more to come:

  • global config
  • SSL support
  • a link back to hudson

or what is your favorite missing feature?

About these ads

2 Responses to A Campfire plugin for Hudson

  1. Mark Woods says:

    Hi,

    Thanks for the plugin, we’ve been using it since moving to Hudson from CC.rb recently.

    We ran into a couple of problems, which I’ve worked around with my rudimentary Java knowledge…

    The configuration settings didn’t appear to be getting saved anywhere, which caused problems when hudson restarted. We’d get a null pointer exception within Room.speak() because the campfire object was null, because DescriptorImpl.newInstance() hadn’t been called. Editing the config for a job and re-saving it would temporarily work around the problem.

    We had a similar problem with our github nofications to campfire clashing with those from the hudson campfire plugin. They both use the same account, but the github plugn uses the campfire api and seems to logout after sending a notification. This would actually log the hudson notifier out too, again resulting in the same null pointer exception.

    What I’ve done is…
    * Checked out your 1.1-SNAPSHOT from the svn repository.

    * Updated the code to use a global configuration for the campfire settings, and implemented the configure method to save these to the disk so they get loaded after a restart.

    * Added a horrible hack to Room.speak() to check if campfire == null and if so, create a new campfire object and login.

    If you want to send me a mail, I’d be more than happy to send my changes on to you. Please excuse the rather awful java coding – it’s been a long time since I wrote any java, and I was in a hurry.

  2. […] campfire plugin for hudson was updated to version 1.1. The new version contains the improvements Mark Woods suggested (global configuration and login recovery). Thank you, […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 92 other followers

%d bloggers like this: