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

Can't change primaryView after Folder is generated

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      As already discussed in https://groups.google.com/d/topic/job-dsl-plugin/hCOem65Gpa8/discussion:

      Minmal example:

      folder('foo') {
        primaryView 'bar'
      }
      
      listView("foo/bar") {
        jobs {
            regex '.*'
        }
      }
      

      This is probably the simplest example of a folder, an additional listView in that folder, which SHOULD be set as the primary view in that folder. It works in testcases, generates the correct XML and is correct when run on a "fresh" Jenkins.

      When run on a Jenkins instance where 'foo' already exists, the primary view is not updated...

          [JENKINS-48288] Can't change primaryView after Folder is generated

          Tobias Gruetzmacher created issue -
          Tobias Gruetzmacher made changes -
          Description Original: As already discussed in https://groups.google.com/d/topic/job-dsl-plugin/hCOem65Gpa8/discussion:

          Minmal example:

          {code:groovy}
          folder('foo') {
            primaryView 'bar'
          }

          listView("foo/bar") {
            jobs {
                regex '.*'
            }
          }
          {code}


          This is probably the simplest example of a folder, an additional listView in that folder, which SHOULD be set as the primary view in that folder. It works in testcases, generates the correct XML and is correct when run on a "fresh" Jenkins.

          When run on a Jenkins instance where 'foo' already exists, the primary view is not updated...

          New: As already discussed in https://groups.google.com/d/topic/job-dsl-plugin/hCOem65Gpa8/discussion:

          Minmal example:

          {code:java}
          folder('foo') {
            primaryView 'bar'
          }

          listView("foo/bar") {
            jobs {
                regex '.*'
            }
          }
          {code}


          This is probably the simplest example of a folder, an additional listView in that folder, which SHOULD be set as the primary view in that folder. It works in testcases, generates the correct XML and is correct when run on a "fresh" Jenkins.

          When run on a Jenkins instance where 'foo' already exists, the primary view is not updated...

          Daniel Spilker made changes -
          Link New: This issue is related to JENKINS-31308 [ JENKINS-31308 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            daspilker Daniel Spilker
            tgr Tobias Gruetzmacher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: