wolfeidau / rake-bamboo-plugin

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

Detection of Ruby Versions Fails on Windows #78

Open collinmurphy opened 10 years ago

collinmurphy commented 10 years ago

Greetings,

Server capabilities detection is failing on windows. I have checked some of the other issues.

Here is the log dump: 014-07-21 16:56:37,669 INFO [http-apr-8085-exec-4] [RubyCapabilityDefaultsHelper] Retrieving a list of runtime managers. 2014-07-21 16:56:37,669 INFO [http-apr-8085-exec-4] [RubyCapabilityDefaultsHelper] Loading ruby locator service - SYSTEM 2014-07-21 16:56:37,669 INFO [http-apr-8085-exec-4] [RubyCapabilityDefaultsHelper] Loading ruby locator service - rbenv 2014-07-21 16:56:37,669 WARN [http-apr-8085-exec-4] [RbenvRubyRuntimeLocatorService] Windows isn't support for RVM installations 2014-07-21 16:56:37,669 INFO [http-apr-8085-exec-4] [RubyCapabilityDefaultsHelper] Loading ruby locator service - RVM 2014-07-21 16:56:37,669 WARN [http-apr-8085-exec-4] [RvmRubyRuntimeLocatorService] Windows isn't support for RVM installations 2014-07-21 16:56:37,669 INFO [http-apr-8085-exec-4] [RubyCapabilityDefaultsHelper] Loading ruby locator service - WINDOWS 2014-07-21 16:56:37,672 INFO [http-apr-8085-exec-4] [ExecHelper] where exit code = 0 2014-07-21 16:56:37,673 INFO [http-apr-8085-exec-4] [ExecHelper] where exec result =

2014-07-21 16:56:37,673 ERROR [http-apr-8085-exec-4] [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 com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelperImpl$1.run(CapabilityDefaultsHelperImpl.java:54)

Here is the output of for %i in (ruby.exe) do @echo. %~$PATH:i C:\RailsInstaller\Ruby2.0.0\bin\ruby.exe

My path variable: PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSystem\;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby2.0.0\bin

Running Latest Versions of Bamboo and Plugin

Let me know if anything else would help.

Thanks -Collin