I install vagrant plugin in Jenkins (1.522version) and when I try to
build, I am getting the below errors. Please help me to solve this issue
Please NOTE:- MY Java version is “1.7.0_25” and my RUBY Version
1.9.3p448
FATAL: (ArgumentError) wrong number of arguments calling initialize (1
for 0)
org.jruby.exceptions.RaiseException: (ArgumentError) wrong number of
arguments calling initialize (1 for 0)
at
RUBY.initialize(/var/lib/jenkins/plugins/vagrant/WEB-INF/classes/vendor/gems/jruby/1.8/bundler/gems/vagrant-8a5b1ad0d1ef/lib/vagrant/environment.rb:77)
at
RUBY.setup(/var/lib/jenkins/plugins/vagrant/WEB-INF/classes/models/vagrant_wrapper.rb:63)
at
RUBY.setUp(/var/lib/jenkins/plugins/vagrant/WEB-INF/classes/vendor/gems/jruby/1.8/gems/jenkins-plugin-runtime-0.1.26/lib/jenkins/model/environment_proxy.rb:7)
You say your ruby version is 1.9.3p448, but that’s an MRI Ruby, not
JRuby. Where are you getting that version from? The stack trace
indicates that you are using JRuby, though.
the third stack message, for environment_proxy.rb shows a “jruby”
gem. Do you or anyone know what that is? I didn’t think JRuby
installed any gems for itselfand the path implies that it’s
Jenkins-specific, so I’m wondering if it’s a Jenkins gem, but why it’s
named “jruby”?
The JRuby path includes a “1.8” directory. This seems strange, it
sounds like you’re running in 1.8 mode, which used to be the default way
back in JRuby versions prior to 1.7.
What OS are you running?
What JRuby version are you using? (jruby -v)
Finally, this sounds like a question that would be more likely to be
answered by the folks who wrote the Jenkins plugin. Here’s a link to
Jenkins’ mailing lists: