[SOLVED] RVM not working in TC 6.5.3

Hi,

I’m using TC on Linux (ubuntu 11.04) and I don’t understand how to configure my project.
I’m trying to use my rvm installation, but when I give to TC my version of ruby and the gemset to use, it complains saying that the gemset doesn’t exist, or the version of ruby, etc. I checked, everything exists and is working fine in a console.
If I decide to use the default interpreter, it uses RVM but I don’t know how to set the gemset (it is reset between steps). And when my rake task runs, it complains about bundler not installed, but it is installed…

So any help would be appreciated!

Thanks :)

4 comments
Comment actions Permalink

Is Teamcity running under the same user you installed rvm under?  I use rvm and bundler for our projects.  I set the build feature to use 1.9.2-p290 and then my first build step is to run "bundle install" which will install the gems I have listed in my Gemfile.  The next build step is to run ruby using the command line build runner or you can use rake if you have a Rakefile that calls ruby.

0
Comment actions Permalink

Yes teamcity is run locally with my user.
I found this article http://blog.carbonfive.com/2010/08/05/using-rvm-on-teamcity-build-agents/ and it seems to be working so far.

I’ll try to set the build feature to use '1.9.2-p290' instead of 'ruby-1.9.2-p290'.

0
Comment actions Permalink

Ok that was the trick! Setting 'ruby-1.9.2-p290' does not work while '1.9.2-p290' works perfectly fine :)

0
Comment actions Permalink

Glad it worked!

0

Please sign in to leave a comment.