Nested View Plugin does not work with the jenkins job dsl

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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 {    
      

            Assignee:
            Daniel Spilker
            Reporter:
            Ulf Gitschthaler
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: