-
Bug
-
Resolution: Not A Defect
-
Major
-
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