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

list view jobnames is missing getter and setter for jcasc compliance

    • Jenkins 2.180

      JCasC users want to configure list views yet sadly jobNames does not have a getter or setter making it improbable for JCasC to configure list views.

      https://github.com/jenkinsci/jenkins/blob/2767b00146ce2ff2738b7fd7c6db95a26b8f9f39/core/src/main/java/hudson/model/ListView.java#L80

          [JENKINS-57121] list view jobnames is missing getter and setter for jcasc compliance

          Vi Pl added a comment -

          @casz

          Are you sure this is a problem?
          I managed to create a new list view with:

          jenkins:
            primaryView:
              all:
                name: "all"
            views:
            - all:
                name: "all"
            - list:
                columns:
                - "status"
                - "weather"
                - "jobName"
                - "lastSuccess"
                - "lastFailure"
                - "lastDuration"
                - "buildButton"
                includeRegex: ".*"
                name: "test_view"
          
          

          Jenkins version: 2.150.3
          configuration-as-code-plugin: version: 1.14

          Vi Pl added a comment - @ casz Are you sure this is a problem? I managed to create a new list view with: jenkins: primaryView: all: name: "all" views: - all: name: "all" - list: columns: - "status" - "weather" - "jobName" - "lastSuccess" - "lastFailure" - "lastDuration" - "buildButton" includeRegex: ".*" name: "test_view" Jenkins version: 2.150.3 configuration-as-code-plugin: version: 1.14

          Oleg Nenashev added a comment -

          Same here, works for me

          Oleg Nenashev added a comment - Same here, works for me

          Does not work for jobNames vx your config uses includeRegex.

          Joseph Petersen (old) added a comment - Does not work for jobNames vx your config uses includeRegex.

          Joseph Petersen (old) added a comment - Please see the down stream PR: https://github.com/jenkinsci/configuration-as-code-plugin/pull/850/files#diff-d4180fbd418102ca8a2290ab285cb17c

          Oleg Nenashev added a comment -

          The change was released in Jenkins 2.180. The change introduces new binary API, so it is not backportable

          Oleg Nenashev added a comment - The change was released in Jenkins 2.180. The change introduces new binary API, so it is not backportable

            jetersen Joseph Petersen
            casz Joseph Petersen (old)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: