• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor 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:

      1. All jobs (or regular expression where the expression includes some disabled jobs)
      2. 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.:

      1. Job-status: disabled, Filter-type: include matching
      2. Job-status: disabled, Filter-type: exclude matching

      will result in an empty list which is correct.

          [JENKINS-56813] Job filter: exclude disabled jobs does not work

          Jesse Glick added a comment -

          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-51143 for 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.

          Jesse Glick added a comment - 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-51143 for 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.

            svenschoenung Sven Schoenung
            gordin Christoph VogtlÃĪnder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: