Hi everybody,

      I would like to configure a sectioned View on our Jenkins with the help of Jenkins Configuration as Code (jCasC). The following code:

       - sectioned:
       name: "test"
       sections:
       - listViewSection:
       alignment: CENTER
       includeRegex: ".*(master_).*"
       name: "test1"
       width: FULL
       - listViewSection:
       alignment: CENTER
       includeRegex: ".*(nightly_).*"
       name: "test2"
       width: FULL
      

      creates a view with the two sections containing the jobs, but the columns are not present, see image:

       

       

      When configuring manually, all default columns are selected and visible.

      The columns could be configured maybe like this:

       - sectioned:
       name: "test"
       sections:
       - listViewSection:
       columns:
       - "status"
       - "jobName"
       - "lastSuccess"
       - "lastFailure"
       - "lastDuration"
       alignment: CENTER
       includeRegex: ".*(master_).*"
       name: "test1"
       width: FULL
      

       

       

          [JENKINS-59551] jCasC: enable colums for sectionedView

          Maria Mueller created issue -
          Maria Mueller made changes -
          Description Original: Hi everybody,

          I would like to configure a sectioned View on our Jenkins with the help of Jenkins Configuration as Code (jCasC). The following code:
           - sectioned:
           name: "test"
           sections:
           - listViewSection:
           alignment: CENTER
           includeRegex: ".*(master_).*"
           name: "test1"
           width: FULL
           - listViewSection:
           alignment: CENTER
           includeRegex: ".*(nightly_).*"
           name: "test2"
           width: FULL

          creates a view with the two sections containing the jobs, but the columns are not present, see image:

          !image-2019-09-26-17-13-37-799.png!

           

           

          When configuring manually, all default columns are selected and visible.

          The columns could be configured maybe like this:

          - sectioned:
           name: "test"
           sections:
           - listViewSection:
           columns:
           - "status"
           - "jobName"
           - "lastSuccess"
           - "lastFailure"
           - "lastDuration"
           alignment: CENTER
           includeRegex: ".*(master_).*"
           name: "test1"
           width: FULL

           

           
          New: Hi everybody,

          I would like to configure a sectioned View on our Jenkins with the help of Jenkins Configuration as Code (jCasC). The following code:

          {code:java}
           - sectioned:
           name: "test"
           sections:
           - listViewSection:
           alignment: CENTER
           includeRegex: ".*(master_).*"
           name: "test1"
           width: FULL
           - listViewSection:
           alignment: CENTER
           includeRegex: ".*(nightly_).*"
           name: "test2"
           width: FULL
          {code}


          creates a view with the two sections containing the jobs, but the columns are not present, see image:

          !image-2019-09-26-17-13-37-799.png!

           

           

          When configuring manually, all default columns are selected and visible.

          The columns could be configured maybe like this:

          {code:java}
           - sectioned:
           name: "test"
           sections:
           - listViewSection:
           columns:
           - "status"
           - "jobName"
           - "lastSuccess"
           - "lastFailure"
           - "lastDuration"
           alignment: CENTER
           includeRegex: ".*(master_).*"
           name: "test1"
           width: FULL
          {code}


           

           
          Oleg Nenashev made changes -
          Labels Original: configuration New: configuration jcasc-compatibility

          Lee Leibke added a comment -

          It would also be nice if specific jobs could be added like in the 'list' view.

          Example:

           - sectioned:
             name: "test"
             sections:
             - listViewSection:       
                 jobNames:
                 - "Job #1"
                 - "Jobe #2" name: "test1"
                 columns:
                 - "status"
                 - "jobName"
                 - "lastSuccess"
                 - "lastFailure"
                 - "lastDuration"
             alignment: CENTER
             width: FULL 

          Lee Leibke added a comment - It would also be nice if specific jobs could be added like in the 'list' view. Example: - sectioned: name: "test" sections: - listViewSection:       jobNames: - "Job #1" - "Jobe #2" name: "test1" columns: - "status" - "jobName" - "lastSuccess" - "lastFailure" - "lastDuration" alignment: CENTER width: FULL

            tbingaman Timothy Bingaman
            maria_mueller Maria Mueller
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: