wolfeidau / rake-bamboo-plugin

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

Can't detect ruby on Windows #82

Open alitheg opened 10 years ago

alitheg commented 10 years ago

Hi,

I'm trying to get this set up to evaluate Bamboo, but I'm going to have to add my voice to those who can't get a Windows ruby executable to detect.

See the logs below:

2014-10-07 15:03:44,454 INFO [http-apr-8085-exec-21] [RubyCapabilityDefaultsHelper] Retrieving a list of runtime managers.
2014-10-07 15:03:44,454 INFO [http-apr-8085-exec-21] [RubyCapabilityDefaultsHelper] Loading ruby locator service - SYSTEM
2014-10-07 15:03:44,454 INFO [http-apr-8085-exec-21] [RubyCapabilityDefaultsHelper] Loading ruby locator service - rbenv
2014-10-07 15:03:44,455 WARN [http-apr-8085-exec-21] [RbenvRubyRuntimeLocatorService] Windows isn't support for RVM installations
2014-10-07 15:03:44,455 INFO [http-apr-8085-exec-21] [RubyCapabilityDefaultsHelper] Loading ruby locator service - RVM
2014-10-07 15:03:44,455 WARN [http-apr-8085-exec-21] [RvmRubyRuntimeLocatorService] Windows isn't support for RVM installations
2014-10-07 15:03:44,455 INFO [http-apr-8085-exec-21] [RubyCapabilityDefaultsHelper] Loading ruby locator service - WINDOWS
2014-10-07 15:03:44,471 INFO [http-apr-8085-exec-21] [ExecHelper] where exit code  = 0
2014-10-07 15:03:44,471 INFO [http-apr-8085-exec-21] [ExecHelper] where exec result =  

2014-10-07 15:03:44,472 ERROR [http-apr-8085-exec-21] [BambooPluginUtils] Module au.id.wolfe.bamboo.ruby.RubyCapabilityDefaultsHelper error while detecting default capabilities: 
au.id.wolfe.bamboo.ruby.common.PathNotFoundException: Unable to locate executable - ruby.exe
    at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.detectExecutablesOnPath(WindowsRubyLocator.java:209)
    at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.listRubyRuntimes(WindowsRubyLocator.java:97)
    at au.id.wolfe.bamboo.ruby.RubyCapabilityDefaultsHelper.addDefaultCapabilities(RubyCapabilityDefaultsHelper.java:55)
    at 
...

(I've removed the remainder of the stack trace for readability).

If I can do anything to help you debug this please let me know!

Oh, and running the following, which appears to be what the Windows locator is doing, finds it ok:

C:\Program Files\Bamboo>cmd.exe /c for %i in ("ruby.exe") do @echo. %~$PATH:i
 C:\Ruby200-x64\bin\ruby.exe