bamboo-ruby插件:无法运行ruby任务:无法找到Runtime Manager安装

时间:2014-07-02 10:54:22

标签: ruby-on-rails ruby git capistrano bamboo

我正在使用bamboo-ruby-plugin v2.5.Atlassian Universal Plugin Manager Plugin。我已经正确安装了rvm,bundler

在我的服务器功能中,正确设置了ruby可执行文件的路径:

示例:

/home/user/.rvm/rubies/ruby-1.9.3-p374/bin/ruby

问题

  1. 我有一个结帐到所需的github分支并且运行成功的任务

  2. 接下来我有捆绑任务,即bundle install

  3. 现在运行计划已成功运行第一个任务checkout,但它正在为第二个任务生成错误bundler

    提取的错误日志文件如下:

    simple  02-Jul-2014 10:49:01    Starting task 'bundle install' of type 'au.id.wolfe.bamboo.rake-bamboo-plugin:task.builder.bundler'
    error   02-Jul-2014 10:49:01    Could not run ruby task: Unable to locate Runtime Manager installation.
    error   02-Jul-2014 10:49:01    au.id.wolfe.bamboo.ruby.locator.RuntimeLocatorException: Unable to locate Runtime Manager installation.
    error   02-Jul-2014 10:49:01            at au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory.acquireRubyLocator(RubyLocatorServiceFactory.java:63)
    error   02-Jul-2014 10:49:01            at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.getRubyLocator(AbstractRubyTask.java:119)
    error   02-Jul-2014 10:49:01            at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.buildEnvironment(AbstractRubyTask.java:157)
    error   02-Jul-2014 10:49:01            at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.execute(AbstractRubyTask.java:73)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:186)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    error   02-Jul-2014 10:49:01            at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    error   02-Jul-2014 10:49:01            at java.lang.Thread.run(Thread.java:662)
    simple  02-Jul-2014 10:49:01    Finished task 'bundle install'
    

    我在这里缺少什么?

2 个答案:

答案 0 :(得分:0)

请尝试按照本指南操作。似乎可执行文件设置不正确。

http://blogs.atlassian.com/2012/06/building-ruby-projects-with-bundler-and-the-bamboo-ruby-plugin/

答案 1 :(得分:0)

尝试:

https://github.com/alienfast/bamboozled-ruby-plugin

它提供了计划范围的ruby运行时选择。说明在github自述文件中。这是从您现在使用的插件派生的,以添加其他功能。

市场页面: https://marketplace.atlassian.com/plugins/com.alienfast.bamboozled.ruby.bamboozled-ruby-plugin