wolfeidau / rake-bamboo-plugin

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

Cannot set up Ruby Enviroment in Bamboo on Debian 6 #34

Open akorthaus opened 11 years ago

akorthaus commented 11 years ago

I can't set up a ruby enviroment for Bamboo 4.3.3 on Debian 6 (64bit).

I tried to install ruby-full via Debian package-manager:

apt-get install ruby-full

I also tried

apt-get install ruby1.9.1-full

Auto-detect server capabilities in Bamboo administration does not find anything, I also tried to restart Bamboo.

On commandline I can find the ruby executable in /usr/bin/ruby

I also created an executable command in Bamboo administration using this path, but this way I don't get a ruby enviroment to choose when I try to create a capistrano task in my build.

What's the recommended way to set up the ruby enviroment on my Debian 6 Build-Server to make the rake-bamboo plugin work?

wolfeidau commented 11 years ago

Gday @akorthaus

The ruby detection routines are pretty basic in bamboo, it is pretty much check /usr/bin and /usr/local/bin for ruby executable.

Could you grep the logs for the any messages around the locator routines using something like the following command.

grep -a4 -b2 'Locator' /var/log/tomcat/catalina.log 

Note: You will need to locate the log file for tomcat I am not sure where Debian puts it.

Also could you run the following command and post the output.

which ruby
file `which ruby`

Thanks.

akorthaus commented 11 years ago

Hi wolfeidau, I managed to get it running using rvm, which installed to /usr/local/rvm/rubies/ruby-1.9.3-p374/bin/ruby and this was detected by bamboo and could be used by capistrano tasks.

I'll soon setup bamboo on a new debian wheezy host, and I'll try again with debian ruby packages, I'll report back here how it works and provide the debugging information you asked for if it fails.

Thank you!

wolfeidau commented 11 years ago

It should work as I tested it on ubuntu with the system ruby there.

I will spin up my VM and give it a shot, odd it doesn't pick it up unless you use RVM.

I really need some log output to show me what it is doing.

Cheers