• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin, rvm-plugin
    • None
    • ubuntu14 ubuntu16 openjdk oraclejdk

      I found this regression on Ubuntu 14, OpenJDK 1.8, Jenkins 2.17. All the wrappers disappeared from all of my job where i used rvm.
      I tried to roll back Rvm plugin to 0.4, job-dsl to 1.47 and jenkins to 2.16.

      When nothing helped i installed fresh 2.7.2 and ran DSL there. Same problem, if one of wrappers is RVM - no wrappers are used in the job.
      Both times i checked the XML, and wrappers were there.
      If i define RVM in UI - everything is OK.

          [JENKINS-37422] No Wrappers if RVM is defined in Job DSL

          Andrei Burd created issue -

          The problem is an incompatible change in the Ruby Runtime plugin (https://wiki.jenkins-ci.org/display/JENKINS/Ruby+Runtime+Plugin). You also need to downgrade that plugin.

          Daniel Spilker added a comment - The problem is an incompatible change in the Ruby Runtime plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Ruby+Runtime+Plugin ). You also need to downgrade that plugin.
          Daniel Spilker made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]

          Andrei Burd added a comment -

          Thanks daspilker, i missed this one.
          Ay idea why in the repository linked in https://wiki.jenkins-ci.org/display/JENKINS/Ruby+Runtime+Plugin the last release is 0.10?

          Andrei Burd added a comment - Thanks daspilker , i missed this one. Ay idea why in the repository linked in https://wiki.jenkins-ci.org/display/JENKINS/Ruby+Runtime+Plugin the last release is 0.10?

          Daniel Spilker added a comment - No, according to Artifactory version 0.13 has been uploaded by user eitoball . Maybe he has an idea. See https://repo.jenkins-ci.org/webapp/#/artifacts/browse/tree/General/releases/org/jenkins-ci/plugins/ruby-runtime/0.13/ruby-runtime-0.13.hpi

          Andrei Burd added a comment -

          to sum this up - i was able to make work again downgrading ruby-runtime-plugin to 0.12 and RVM to 0.4

          Andrei Burd added a comment - to sum this up - i was able to make work again downgrading ruby-runtime-plugin to 0.12 and RVM to 0.4

          Eito Katagiri added a comment -

          burdandrei Could you explain how to reproduce this error?

          As far as I know, changes in ruby-runtime 0.13 is updating jruby version. I didn't think that the changes made incompatibility...

          Eito Katagiri added a comment - burdandrei Could you explain how to reproduce this error? As far as I know, changes in ruby-runtime 0.13 is updating jruby version. I didn't think that the changes made incompatibility...
          Eito Katagiri made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Eito Katagiri [ eitoball ]

          Andrei Burd added a comment -

          Hi eitoball,
          I managed to reproduce it by installing fresh jenkins 2.7.2 rvm and job-dsl plugin.
          then add the following:

          freeStyleJob('rvmdslwrappers') {
            wrappers {
              timestamps()
              colorizeOutput()
              buildUserVars()
              rvm('ruby-2@project')
          
            }
          }
          

          Genarated job will not have any wrappers, but if you list the XML - they are there.

          Andrei Burd added a comment - Hi eitoball , I managed to reproduce it by installing fresh jenkins 2.7.2 rvm and job-dsl plugin. then add the following: freeStyleJob( 'rvmdslwrappers' ) { wrappers { timestamps() colorizeOutput() buildUserVars() rvm( 'ruby-2@project' ) } } Genarated job will not have any wrappers, but if you list the XML - they are there.

          Eito Katagiri added a comment -

          I submitted https://github.com/jenkinsci/job-dsl-plugin/pull/901 This PR should fix partially. You can use rvm-plugin 0.6, but need to use ruby-runtime 0.12 (0.13 is the latest).

          Eito Katagiri added a comment - I submitted https://github.com/jenkinsci/job-dsl-plugin/pull/901 This PR should fix partially. You can use rvm-plugin 0.6, but need to use ruby-runtime 0.12 (0.13 is the latest).

            daspilker Daniel Spilker
            burdandrei Andrei Burd
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: