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

Nested View Plugin does not work with the jenkins job dsl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Jenkins 2.4.0
      Job DSL Plugin 1.5.7
      Nested View Plugin 1.14

      I wanted to add a nested view using the jenkins job dsl plugin. I refered to this sample .

      nestedView('project-a') {
          views {
              listView('overview') {
                  jobs {
                      regex(/project-A-.*/)
                  }
                  columns {
                      status()
                      weather()
                      name()
                      lastSuccess()
                      lastFailure()
                  }
              }
              buildPipelineView('pipeline') {
                  selectedJob('project-a-compile')
              }
          }
      }
      

      The error on jenkins is the following:

      ERROR: (seed_defaults.groovy, line 122) No signature of method: java.util.ArrayList.call() is applicable for argument types: (seed_defaults$_run_closure5$_closure27) values: [seed_defaults$_run_closure5$_closure27@438e2f8b]
      Possible solutions: tail(), tail(), wait(), last(), any(), last()
      

      whereas line 122 is the following line:

          views {    
      

            daspilker Daniel Spilker
            u6f6o Ulf Gitschthaler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: