wolfeidau / rake-bamboo-plugin

Plugin for bamboo which enables building of ruby projects using rake
Other
34 stars 16 forks source link

Plugin only works on Windows with Ruby and JRuby installed #75

Open MattGeri opened 10 years ago

MattGeri commented 10 years ago

Thanks for the excellent plugin!

Just a quick thing that took me a while to figure out. I installed the plugin with Ruby installed on a Windows 2012 server. When I hit "detect server capabilities" nothing showed up. Looked in the logs and saw it was finding ruby.exe but crashing when trying to find jruby.exe.

I installed JRuby on the same machine and then both Ruby installations showed up in the server capabilities.

Seems like both need to be installed for it to work. Let me know if I can send any logs that would be helpful.

Thanks, Matt

wolfeidau commented 10 years ago

Yeah logs would be very helpful if you haven't already solved this.

ghost commented 9 years ago

Hi, I have the same problem on windows machines. The machines have ruby installed. I looked in the agent logs and can see that ruby is detected, but then it failed looking for jruby. I installed jruby but still no joy. Here is the relevant log from an agent which has ruby and jruby installed (they are in the PATH too).

2014-11-28 14:59:17,568 INFO [Thread-0] [ExecHelper] where exit code = 0 2014-11-28 14:59:17,568 INFO [Thread-0] [ExecHelper] where exec result = C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe

2014-11-28 14:59:17,576 INFO [Thread-0] [ExecHelper] where exit code = 0 2014-11-28 14:59:17,576 INFO [Thread-0] [ExecHelper] where exec result =

2014-11-28 14:59:17,576 ERROR [Thread-0] [BambooPluginUtils] Module au.id.wolfe.bamboo.ruby.RubyCapabilityDefaultsHelper error while detecting default capabilities: au.id.wolfe.bamboo.ruby.common.PathNotFoundException: Unable to locate executable - jruby.exe at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.detectExecutablesOnPath(WindowsRubyLocator.java:209) at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.listRubyRuntimes(WindowsRubyLocator.java:98)

Thanks, Barry