0

我正在尝试将 rails 插件与 hudson 一起使用,但出现以下错误,我不知道如何执行此操作,请遵循堆栈:

Updating URL revision: Jan 18, 2012 1:01:56 PM depth:infinity ignoreExternals: false
At revision 21
no change for URL since the previous build
[workspace] $ /bin/sh -xe /etc/tomcat6/apache-tomcat-6.0.35/temp/hudson9010951436400252341.sh
+ cd Hermodr
+ cd trunk
+ bundle install
Using rake (0.9.2.2) 
Using multi_json (1.0.4) 
Using activesupport (3.1.1) 
Using builder (3.0.0) 
Using i18n (0.6.0) 
Using activemodel (3.1.1) 
Using erubis (2.7.0) 
Using rack (1.3.6) 
Using rack-cache (1.1) 
Using rack-mount (0.8.3) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.0.3) 
Using actionpack (3.1.1) 
Using mime-types (1.17.2) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.3.0) 
Using actionmailer (3.1.1) 
Using arel (2.2.1) 
Using tzinfo (0.3.31) 
Using activerecord (3.1.1) 
Using activeresource (3.1.1) 
Using ansi (1.4.1) 
Using bundler (1.0.21) 
Using coffee-script-source (1.2.0) 
Using execjs (1.2.13) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.6.5) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.1.1) 
Using coffee-rails (3.1.1) 
Using jquery-rails (1.0.19) 
Using minitest (2.10.1) 
Using rails (3.1.1) 
Using sass (3.1.12) 
Using sass-rails (3.1.5) 
Using sqlite3 (1.3.5) 
Using turn (0.8.3) 
Using uglifier (1.2.2) 
[32mYour bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.[0m
+ rake db:migrate
rake aborted!
/home/hp/.hudson/jobs/SVN/workspace/Hermodr/trunk/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end
...sion_store :cookie_store, key: '_Hermodr_session'
                              ^

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
[DEBUG] Skipping watched dependency update for build: SVN #8 due to result: FAILURE
Finished: FAILURE

提前致谢!

4

1 回答 1

0

看起来您正在使用 Ruby 的 1.9 之前版本和 Hudson - 它期待:symbol => value语法而不是更新的symbol: value.

您要么需要更新构建机器上的 Ruby 版本,要么安装 RVM 来为运行 Hudson 的用户管理 rubies。

于 2012-01-18T16:57:56.733 回答