-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Windows 2012 Server
Jenkins ver. 2.150.3
When defining a job filter on a view, using the "Job-Status" filter with "Disabled" and type set to "Exclude matching", will still show disabled jobs.
E.g. define two filters:
- All jobs (or regular expression where the expression includes some disabled jobs)
- Job-Status: Disabled, Filter-type: Exclude matching
Including disabled jobs seems to work fine.
Strangely, when using two "Job-status" filters, the exclude filter works as expected:
E.g.:
- Job-status: disabled, Filter-type: include matching
- Job-status: disabled, Filter-type: exclude matching
will result in an empty list which is correct.
To create a view showing all enabled jobs, add a Job Statuses Filter with Disabled checked and select Include Unmatched - Add jobs that don't match this filter. Do not select jobs or check the regular expression filter option. Or you can use the core built-in filter without using this plugin. See
JENKINS-51143for a fuller explanation.Using a GUI to define a boolean predicate is not great, and the particular way this is handled in Jenkins list views is especially confusing.