Thursday, September 27, 2007

Remote Build Light

The machine that our CC build runs on is stashed away in a server room somewhere so we can't use the CC x10 plugin to control our build light. To get around this we have a cron job on one of our pairing stations that runs a jRuby script. The script does a screen scrape of our cruise status page and turns the build light on (when any project is failing) or off (when all projects are happy). Three cheers for the build light!

Code for this is here

2 comments:

David Carver said...

Why not just reed the RSS feed that CC can provide instead of screen scraping.

Shlomo said...

This was just the first thing I thought of. Doing the RSS thing sounds like a better idea, though it probably isn't any easier.