when CruiseControl.rb wants to perform an integration test it looks for a rake task called "cruise" within the project and executes it.
Is there a way to hand over the current revision number to that task? I'm deploying an app using capistrano on a remote machine after integration tests. Because capistrano will deploy the HEAD revision if no special revision is passed, I'd like to tell it to use cc.rb's last checked revision...
any ideas?
rake cruiseruns in a directory containing a checkout. If your source control is git, extracting the revision is trivial.cruise is running in a checkout that matches the revision you asked to be built, not HEAD, so the revision reported buy git log should be accurate.
Good luck!