jenkinsci/jenkins.rb

Please release 0.11 to fix JENKINS-18311

yyuu opened this issue ยท 19 comments

yyuu commented

Starting from Jenkins 1.518, Jenkins fails to load ruby-runtime (java-runtime) by the error described in JENKINS-18311. This problem breaks all the plugins depending on ruby-runtime, including rvm, rbenv, etc.

I tested ruby-runtime at yyuu/jenkins.rb@65be621 on my Jenkins 1.518 and it seems fine for me. Please release new version 0.11.

๐Ÿ‘ We're blocked on upgrading Jenkins until this is addressed

+1 Nearly had a heart attack when I upgraded to Jenkins 1.518 and all my rvm jobs disappeared!

hsbt commented

I'll handle this issue :octocat:

@hsbt it was merged, but was it released?

hsbt commented

deployed 0.11-SNAPSHOT and confirmed to 0.11 works with jenkins-1.518.(with 1.519 not works, it seems another problems.)

Would someone try 0.11-SNAPSHOT with jenkins-1.518?

Would someone try 0.11-SNAPSHIT with jenkins-1.518?
0.11-SNAPSHIT
SHIT

In all seriousness, I have successfully installed the 0.11 snapshot. Finally, after a whole day of trying to figure out why ruby-runtime wasn't installing! :) But gitlab-hook plugin still fails :/

Just tried latest v0.11.-SNAPSHOT on Jenkins v1.518, seems to be working.
All steps described in elvanja/jenkins-gitlab-hook-plugin#10 (comment)

tadd commented

๐Ÿ‘

yyuu commented

Sorry to be late. I confirmed that ruby-runtime 0.11 is working on Jenkins 1.518 ๐Ÿ‘ Then, I closed JENKINS-18311 on Jenkins JIRA.

But I found another problem of hudson.util.IOException2: Failed to initialize on Jenkins 1.519 and later :( Now I'm investigating on that problem.

bjpe commented

@yyuu Thank you for closing this bug. Anyway, I upgraded to Jenkins 1.520 and saw another problem which might be the problem you mentioned. Downgrading to 1.518 solved it for now. Did you create an issue on this so that I can follow the progress?

yyuu commented

@bjpe
The ruby-runtime cannot work on jenkins 1.519+ by the exception of hudson.util.IOException2: Failed to initialize. This is another problem in Jenkins core
introduced by jenkinsci/jenkins@f7330d7. Downgrading to jenkins 1.518 (or before) is the current workaround.

I've not yet created about this on Jenkins JIRA. Will create it soon.

yyuu commented

Reported to Jenkins JIRA as JENKINS-18528.

FYI: yyuu the 0.11 fix did not work for me in either 1.517 or 1.518, I got this error http://pastebin.centos.org/2971/raw/

I've rolled back to 1.517 with ruby-runtime 0.10 and our build is working again..

This is just another voice really, to say that 1.517 with ruby-runtime works as expected. I rolled our systems back to those revisions as well, and it all came back to life.

tadd commented

I got same error with @MrFlibble007 and it did not occurred too if I rollbacked Jenkins 1.517 with ruby-runtime 0.10.
That error seems to yield some jobs hidden, so it's a blocker bug for me.

yyuu commented

I confirmed same error as @MrFlibble007 on Jenkins 1.517 + ruby-runtime 0.11 + rvm plugin 0.4. In contrast, Jenkins 1.517 + ruby-runtime 0.11 + rbenv plugin 0.0.14 is working without problems.

This might be a problem of some kind of incompatibility between versions of jenkins-plugin-runtime gem (rvm => 0.1.17, rbenv => 0.2.3). Now I'm checking the changes between them.

@yyuu yes we're using rvm plugin(rather than rbenv) here, sorry for leaving that info out.

yyuu commented

Please use #86 for ruby-runtime 0.11 + rvm plugin issues.