Comments (6)
Please let me know the version of Jenkins.
from jenkins.rb.
I confirmed this on Jenkins 1.517 + ruby-runtime 0.11 + rvm plugin 0.4. The cause of this problem is old gem dependency (jenkins-plugin-runtime 0.1.17) of rvm plugin 0.4.
Because the latest master of rvm plugin is using jenkins-plugin-runtime 0.2.3 (latest) at jenkinsci/rvm-plugin@e54486e, install rvm plugin from master should solve this problem. Though, there is another incompatibility issue (class hierarchy changes) between jenkins-plugin-runtime 0.1.17 and 0.2.3. Just upgrading rvm plugin may lose job configurations :(
from jenkins.rb.
It was Jenkins 1.504. I thought that upgrading the RVM plugin might solve the issue, but 0.4 is the latest released version, leaving me stuck.
from jenkins.rb.
Yep, rvm plugin 0.4 is the latest release version. The latest development version can only be accessed via github repo.
from jenkins.rb.
Tested with small script.
#!/usr/bin/env ruby
require "java"
puts(RUBY_DESCRIPTION)
java.lang.System.out.write("hello, world\n")
JRuby 1.6 translates call of write(String)
on java.io.PrintStream
as call of java.io.PrintStream#print(String)
.
% ruby j.rb
jruby 1.6.8 (ruby-1.8.7-p357) (2012-09-18 1772b40) (OpenJDK 64-Bit Server VM 1.7.0_21) [linux-amd64-java]
hello, world
JRuby 1.7 doesn't treat so.
% ruby j.rb
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on OpenJDK 64-Bit Server VM 1.7.0_21-b02 [linux-amd64]
NameError: no method 'write' for arguments (org.jruby.RubyString) on Java::JavaIo::PrintStream
available overloads:
(int)
(byte[])
(root) at j.rb:4
from jenkins.rb.
Confirmed that setting java_alias
on java.io.PrintStream
will solve problem on ruby-runtime
0.11+.
require "java"
java_import java.io.PrintStream
class PrintStream
java_alias(:write, :print, [java.lang.String])
end
from jenkins.rb.
Related Issues (20)
- jpi release --release failing with Net::HTTPServerException: 403 "Forbidden" HOT 3
- jenkins-war infrastructure HOT 3
- jpi commands failing HOT 1
- Release 0.14 HOT 1
- Broken Jenkins::Model::Listener HOT 1
- Ruby Runtime 0.12 + Jenkins 1.598 and Above Not Saving Job Parameters HOT 19
- ERROR: uninitialized constant Java::JavaUtilLogging::Logger::DEBUG (NameError)
- Post Build Action Not Saving After Restart HOT 3
- ruby-runtime failed to load w/ java version >= 1.7 HOT 3
- jenkins command line tool doesn't work in ruby 2.2.1 HOT 1
- Associate a Descriptor to the build wrapper HOT 2
- jpi deploy
- ruby-runtime 0.13 and rbenv 0.0.17 are not compatible for jobdsl
- jpi fails to create free style job
- Plugin ruby-runtime fails with Java 11 HOT 2
- Please release 0.11 to fix JENKINS-18311 HOT 19
- Release ruby-runtime 0.12 HOT 5
- DataBoundConstructor error HOT 1
- jpi release --release pushes plugins to wrong place? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins.rb.