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

categorizedJobsView default "recurse" value is not honored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • job DSL plugin version 1.58
      Jenkins ver. 2.47

      Hi there

      I am using the job DSL plugin to create categorizedJobsView. API Viewer documentation for categorizedJobsView say default recurse value is true. However that is not the case. the default value is set to false

      This can be validated by using the following

      categorizedJobsView('example') \{
          jobs \{
              regex(/configuration_.*/)
          }
          categorizationCriteria \{
              regexGroupingRule(/^configuration_([^_]+).*$/)
          }
          columns \{
              status()
              categorizedJob()
              buildButton()
          }
      }
      

      Look for the XML file generated and check for <recurse> flag, you will notice something like <recurse>false</recurse>. But the documentation says default value for recurse is true

      The way to correct is to change above DSL code to following

      categorizedJobsView('example') \{
          jobs \{
              regex(/configuration_.*/)
          }
         recurse(true)
          categorizationCriteria \{
              regexGroupingRule(/^configuration_([^_]+).*$/)
          }
          columns \{
              status()
              categorizedJob()
              buildButton()
          }
      }
      

      This seems to be bug in documentation

            daspilker Daniel Spilker
            nallagun Abhinav Nallagundla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: