categorizedJobsView default "recurse" value is not honored

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Daniel Spilker
            Reporter:
            Abhinav Nallagundla
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: