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

Nested View Plugin does not work with the jenkins job dsl

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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 {    
      

        Attachments

          Activity

          Hide
          daspilker Daniel Spilker added a comment -

          Your example works in the Job DSL Playground. You need to post a script that reproduces the problem.

          Show
          daspilker Daniel Spilker added a comment - Your example works in the Job DSL Playground . You need to post a script that reproduces the problem.
          Hide
          u6f6o Ulf Gitschthaler added a comment -

          Something wrong with my setup. It even works if I provide the configuration directly via "Use the provided DSL script".

          Thx for looking into it.

          Show
          u6f6o Ulf Gitschthaler added a comment - Something wrong with my setup. It even works if I provide the configuration directly via "Use the provided DSL script". Thx for looking into it.

            People

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

              Dates

              Created:
              Updated:
              Resolved: