Using the Rake plugin with Jenkins got me into a bit of trouble this
morning. Seems it got broken somewhere along the way issuing the following
error:
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:319:in `to_specs':
Could not find 'rake' (>= 0) among 11 total gem(s) (Gem::LoadError)
Checked in
'GEM_PATH=file:/usr/share/tomcat6/webapps/jenkins/plugins/ruby-runtime/WEB-INF/lib/stapler-jruby-1.209.jar!/gem:/usr/lib64/ruby/gems/1.8',
execute `gem env` for more information
from /usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:328:in `to_spec'
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_gem.rb:65:in
`gem'
After running the rake invocation from the command line I deduced that
the issue was all about the GEM_PATH variable which I then set
globally in the Jenkins settings.
Not complaining, just posting this so I might be able to save others
some time troubleshooting.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv1%2BsfNqPQMtYMU9%3Dm-dBp39MFSXuMOn_PRgYHDz46w-%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.