Purging old cruise builds

September 29, 2010
Continuous Integration is such an important idea and I love CruiseControl.rb as its so easy to use. However one thing that drives me crazy is that it keeps all builds forever. Over the past few years we run out of disk space every few months causing all our builds to start failing and some tedious manual work to delete some directories.

Today I decided to do something about it and wrote a script to remove all but the most recent builds. After all why do I want an old build lying around as that's what Git of Subversion is for!

If you want to give it a try you can download the script from http://github.com/alexrothenberg/purge_old_cruise_builds

This seems to be working for me and I'd love to hear if I'm making some assumptions you need to change to adapt it to your uses.