/home/agideo/.cruise/projects/mindaitong_dev/work agideo$ ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/home/agideo/projects/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear"
rake aborted!
Mysql2::Error: No database selected: SHOW TABLES
(See full trace by running task with --trace)
(in /home/agideo/.cruise/projects/mindaitong_dev/work)
[CruiseControl] Invoking Rake task "db:test:purge"
[CruiseControl] Invoking Rake task "db:migrate"
解决方案;
vi /home/agideo/projects/cruisecontrol-1.4.0/tasks/cc_build.rake
if configurations and configurations.has_key?("test") and configurations["test"]["adapter"] 'mysql'
改为
if configurations and configurations.has_key?("test") and (configurations["test"]["adapter"] ‘mysql’ or configurations[“test”][“adapter”] == ‘mysql2’)