How do i use RVM w/ Hudson CI server on Debian?

Posted by JoshReedSchramm on Stack Overflow See other posts from Stack Overflow or by JoshReedSchramm
Published on 2010-05-23T00:38:21Z Indexed on 2010/05/23 0:40 UTC
Read the original article Hit count: 314

Filed under:
|
|
|

I'm trying to setup an automated "build" server for my rails projects using Hudson CI. SO far it's able to run specs and do metrics on the code but I have 2 different projects dependent on 2 different versions of ruby. So i'm trying to use RVM to run multiple copies of ruby then switch back and forth in a pre-build step.

I found a couple posts like this one that try and explain how to make this work, but I'm not running a startup script for hudson, it starts on boot which is how it worked out of the box when i installed it via the debian instructions.

The problem seems to be that even though hudson runs under the "hudson" account and that account has rvm installed (and working) when it tries to run a shell based prebuild step to call rvm switch 1.8.7 it fails with the error "rvm: command not found"

Not sure what I'm doing wrong. Hudson is using SH as its shell but i also tried using bash. no luck.

Has anyone gotten this working before in this setup?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about bash