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

list view jobnames is missing getter and setter for jcasc compliance

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.180

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            vx Vi Pl added a comment -

            @Joseph Petersen (old)

            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

            Show
            vx Vi Pl added a comment - @ Joseph Petersen (old) 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
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Same here, works for me

            Show
            oleg_nenashev Oleg Nenashev added a comment - Same here, works for me
            Hide
            casz Joseph Petersen (old) added a comment -

            Does not work for jobNames Vi Pl your config uses includeRegex.

            Show
            casz Joseph Petersen (old) added a comment - Does not work for jobNames Vi Pl your config uses includeRegex.
            Show
            casz 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
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

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

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

              People

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

                Dates

                Created:
                Updated:
                Resolved: