Perforce for CruiseControl.rb
I used to use Perforce heavily, and needed support for it in CruiseControl.rb. Thus, I provide here the Perforce support I wrote for CruiseControl.rb, as-is, without warranty, etc. I no longer use Perforce (stopped using this about mid, to later, 2007), so I cannot verify that it works with the latest versions. But for those who have been looking for this, here you go. Note that I blogged about this previously (on my main blog "Code Intensity").
perforce.rb
To install/use it:
- Put the above file into your cruisecontrol/app/models directory.
- Manually setup your project:
- Create a directory under the cruisecontrol/projects directory.
- Place a
cruise_config.rbfile in it. It should contain something like the following in order to use Perforce:
Project.configure do |project|
project.source_control = Perforce.new(
:port => 'your.perforce.server:1666',
:clientspec => 'clientspec-for-cruisecontrol',
:user => 'buildusername',
:password => 'builduserpassword',
:path => '//depot/path/to/your/rails/app/...')
end

