Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39807

job-dsl plugin creating incorrect XML for rvm/ruby-runtime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • Jenkins 2.19.2
      job-dsl-plugin 1.53
      ruby-runtime-plugin 0.12
      rvm-plugin 0.6

      When a JobDSL job is created using the rvm plugin, it will use the Jenkins::Plugin::Proxies::BuildWrapper ruby class instead of Jenkins::Tasks::BuildWrapperProxy . This is part of an old compatibility fix in job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/wrapper/WrapperContext.groovy line 112.

      Examination of the ruby-runtime source code for the 0.12 release reveals that it uses the Jenkins::Tasks::BuildWrapperProxy class, like ruby-runtime 0.13 does.

      I locally recompiled the job-dsl plugin with the class name hard set to Jenkins::Tasks::BuildWrapperProxy (no plugin check conditional) and verified that the XML generated is properly parsed by Jenkins.

            daspilker Daniel Spilker
            jbachtel Jeff Bachtel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: