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

job-dsl-plugin fails to

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Code is here: https://gist.github.com/jmif/9deeb17816d0bea677b1

      build_pipelines is an array of HashMaps defined above the code snipped.

      On line 8 you'll see a method called buildPipelineView that exists on the views context, unfortunately when I wrap the buildPipelineView call within the each closure, buildPipelineView then resolves to the larger buildPipelineView contained in the job DSL API. Thus, this snippet adds views to the jenkins top level view, not the nested view.

      I don't know enough about groovy to know if this is expected and there is some code change I need to make or if this is a bug in the nested views context and it needs to be fixed.

      Thanks!

            daspilker Daniel Spilker
            jmif Joe Mifsud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: