cruise_control.rb Campfire Plugin

cruise_control.rb Campfire Plugin

We’ve been somewhat unhappy with our current Cerberus installation, so we’ve decided to jump on the CC.rb bandwagon. Though there were a couple of problems when adding projects (I’ll try to expand on that in another post), the overall experience was pretty good—installation was a breeze, and the plugin system makes extending it dead simple.

As proof…

Campfire plugin for cruisecontrol.rb

A builder plugin for CruiseControl.rb that sends build notices to campfire chat rooms.

Download

You can get the tarball <a href=“http://svn.thoughtbot.com/plugins/cruisecontrol.rb/campfirenotifier.tgz”>here, or grab it from svn at http://svn.thoughtbot.com/plugins/cruisecontrol.rb/campfirenotifier. You can even track it via externals:

svn propset svn:externals 'campfirenotifier http://svn.thoughtbot.com/plugins/cruisecontrol.rb/campfirenotifier' builderplugins/installed

Installation

  1. Create a Campfire account that you will use for sending notifications.
  2. Copy campfirenotifierplugin folder to builderplugins/installed (or use the externals method above)
  3. Modify builds/yourproject/cruiseconfig.rb by adding the following lines:
Project.configure do |project|
...
project.campfirenotifier.domain = 'thoughtbot'
project.campfire
notifier.room = '38367'
project.campfirenotifier.ssl = false
project.campfire
notifier.username = 'sender@gmail.org'
project.campfirenotifier.password = 'senderpassword'
...
end

Tammer Saleh Developer

Sharpen your programming skills by completing coding exercises that are reviewed by other developers at Upcase today.