wolfeidau / rake-bamboo-plugin

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

Unable to detect ruby runtime capabilities on remote agent with latest versions #72

Open cdcrews opened 10 years ago

cdcrews commented 10 years ago

Hi,

I have the latest version of Bamboo (v5.5) and the latest version of the add-on (v2.5). However, when I add the task to a job for a specific agent, the ruby environment drop down is not populated. How can I get the ruby runtime capabilities for a specific remote agent detected by bamboo so that I can once again use this add-on?

Thanks, Christian

ramonskie commented 10 years ago

same problem here i have rbenv installed with several version on the agents

os: ubuntu 13.04 bamboo: 5.5 Bamboo Ruby Plugin: 2.5 no local agents only remotes

wolfeidau commented 10 years ago

Heya

Unfortunately I don't have access to a similar environment, is there any logs / errors or other information that you can garner from the systems your using?

Is my plugin loading on the agents?

Any info would be helpful.

ramonskie commented 10 years ago

when i installed the plugin nothing was in my agent log files about the ruby plugin but when i restarted the agent i saw the following

INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,737 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Retrieving a list of runtime managers.
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,738 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - SYSTEM
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,742 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - rbenv
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,742 INFO [Thread-1] [RbenvRubyRuntimeLocatorService] Searching for rbenv installation in users home directory located at - /home/bamboo/.rbenv
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,743 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - RVM
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,744 INFO [Thread-1] [RvmRubyRuntimeLocatorService] Searching for rvm installation in users home directory located at - /home/bamboo/.rvm
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,744 INFO [Thread-1] [RvmRubyRuntimeLocatorService] Search for rvm installation in system paths /usr/local/rvm
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,745 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - WINDOWS
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,745 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Retrieving a list of runtime managers.
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,746 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - SYSTEM
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,746 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - rbenv
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,747 INFO [Thread-1] [RbenvRubyRuntimeLocatorService] Searching for rbenv installation in users home directory located at - /home/bamboo/.rbenv
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,748 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - RVM
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,748 INFO [Thread-1] [RvmRubyRuntimeLocatorService] Searching for rvm installation in users home directory located at - /home/bamboo/.rvm
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,749 INFO [Thread-1] [RvmRubyRuntimeLocatorService] Search for rvm installation in system paths /usr/local/rvm
INFO   | jvm 1    | 2014/08/06 09:12:43 | 2014-08-06 09:12:43,749 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - WINDOWS

it seems that it only looks for rbenv in the user home directory but my rbenv binary is installed in " /opt/rbenv/bin/rbenv"

ramonskie commented 10 years ago

any idea's yet?

wolfeidau commented 10 years ago

At the moment the rbenv functionality only works for user installations, as in those located in the bamboo users home directory.

Happy to accept a PR to support system installations.

ramonskie commented 10 years ago

really no clue where to start here :( we use the https://github.com/RiotGames/rbenv-cookbook to install rbenv and i don't know what the best option is change the usage of the rbenv cookbook or the this plugin