RE: Issue getting RVM working

2012-08-14 Thread de Herdt Arne
Getting slightly desperate now.

- Reinstalled RVM as single user installation for the Jenkins user: Solved the 
file not found
- Reinstalled Ruby in RVM : solved the reinstallation of Ruby

But I have no idea how to solve the problem I'm currently experiencing, nor 
where it comes from:

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

What kind of hook is Jenkins trying to run, and can I disable it somewhere by 
any chance?

--
Arne



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

When I log in as the Jenkins user, I can get RVM working etc. I see the ruby 
version etc.
So RVM is properly installed for the Jenkins users.

What I did notice however, is that when I ran the project from Jenkins, the 
first thing it did was reinstall Ruby. No idea why because it was already 
installed.


--
Arne De Herdt

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Sami Tikka
Sent: Montag, 13. August 2012 12:08
To: jenkinsci-users@googlegroups.com
Subject: Re: Issue getting RVM working

Is this a Jenkins issue at all? Does it work when you try it as Jenkins user 
with the same environment? Note, Jenkins might not have the same environment 
vars as a logged in user, depending on your platform and where the vars are 
set. 

-- Sami

de Herdt Arne arne.de.he...@prosiebensat1games.com kirjoitti 13.8.2012 kello 
9.56:

 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

RE: Issue getting RVM working

2012-08-13 Thread de Herdt Arne
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


RE: Issue getting RVM working

2012-08-13 Thread de Herdt Arne
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


Re: Issue getting RVM working

2012-08-13 Thread Sami Tikka
Is this a Jenkins issue at all? Does it work when you try it as Jenkins user 
with the same environment? Note, Jenkins might not have the same environment 
vars as a logged in user, depending on your platform and where the vars are 
set. 

-- Sami

de Herdt Arne arne.de.he...@prosiebensat1games.com kirjoitti 13.8.2012 kello 
9.56:

 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


Re: Issue getting RVM working

2012-08-10 Thread R. Tyler Croy

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


signature.asc
Description: Digital signature