Ok,

I managed to get a bit further now. The RVM issue is gone, but I still receive 
errors when trying to run my configuration.
This is the output from console:

Building in workspace /var/lib/jenkins/workspace/Ruby_Example
Checkout:Ruby_Example / /var/lib/jenkins/workspace/Ruby_Example - 
hudson.remoting.LocalChannel@73ae0c9d
Using strategy: Default
Last Built Revision: Revision 2d34e939cd57cc5c27d1762d3b93560be95e2033 
(origin/HEAD, origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from <hidden git>
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision 2d34e939cd57cc5c27d1762d3b93560be95e2033 
(origin/HEAD, origin/master)
Checking out Revision 2d34e939cd57cc5c27d1762d3b93560be95e2033 (origin/HEAD, 
origin/master)
Warning : There are multiple branch changesets here
Capturing environment variables produced by 'rvm use 1.9.3'
$ bash -c export
$ bash -c "test ! -f ~/.rvm/scripts/rvm"
[Ruby_Example] $ bash -c "source ~/.rvm/scripts/rvm && 
rvm_install_on_use_flag=1 && rvm use --create 1.9.3 && export > rvm.env"
Using /usr/local/rvm/gems/ruby-1.9.3-p194
Running /usr/local/rvm/hooks/after_use
[Ruby_Example] $ ruby -v /tmp/hudson3490064438898025857.rb
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
/tmp/hudson3490064438898025857.rb:1:in `<main>': undefined local variable or 
method `install' for main:Object (NameError)
Build step 'Execute Ruby script' marked build as failure
Finished: FAILURE

He seems to be doing something with after_hooks, but I don't know where this 
comes from.

--
Arne

-----Original Message-----
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of de Herdt Arne
Sent: Montag, 13. August 2012 08:22
To: jenkinsci-users@googlegroups.com
Subject: RE: Issue getting RVM working

Tyler,

Thanks for the reply. I will give this a spin and see if I can get it working 
then.

Arne De Herdt

-----Original Message-----
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of R. Tyler Croy
Sent: Freitag, 10. August 2012 19:05
To: jenkinsci-users@googlegroups.com
Subject: Re: Issue getting RVM working


On Thu, 09 Aug 2012, de Herdt Arne wrote:

> Hello,
> 
> I'm currently in the process of setting up a Jenkins instance on Debian to 
> have our team play around and see how we can work with Jenkins.
> I have configured a Ruby plan that is able to checkout the source from our 
> git, the problem is getting the ruby tests running. It keeps getting stuck on 
> RVM, and I have no idea what is going wrong.
> 
> When I log in manually on the box, RVM etc is all working, but this is what I 
> get in the log output of the Jenkins project:


It sounds like you've not up RVM for the Jenkins user specifically. The script 
is failing to find "/var/lib/jenkins/.rvm/scripts/rvm", where 
"/var/lib/jenkins" is the Jenkins user's home directory.


You might try sudo'ing to the `jenkins` user and installing RVM there


- R. Tyler Croy
--------------------------------------
    Code: http://github.com/rtyler
 Chatter: http://twitter.com/agentdero
          rty...@jabber.org

Reply via email to