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

Does not work with recursive views that include jobs within folders

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • favorite-plugin
    • None

      The change in Jenkins 1.512 which adds support for views containing items child items from within folders is incompatible with the current way the plugin works.

      Steps to reproduce:

      1. Install folders plugin
      2. Create two jobs at root: A & B
      3. Create three folders at root: C, D & E
      4. In each of the folders create two jobs: C/F, C/G, D/H, D/I, E/J, E/K
      5. Mark the following jobs as favorite: A, C/F and the folder D.
      6. Create a view with the `Recurse in subfolders` option selected and a regex of `.*` and the Favorites Filter

      Expected results:

      The view should contain the following items only: A, C/F and D

      Actual results:

      The view contains:

      A
      C/F
      C/G
      D
      D/H
      D/I
      E/J
      E/K

          [JENKINS-18604] Does not work with recursive views that include jobs within folders

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/hudson/plugins/favorite/filter/FavoriteFilter.java
          http://jenkins-ci.org/commit/favorite-plugin/6376257036aa2a863423680ff04ee9e142fc5748
          Log:
          [FIXED JENKINS-18604] Simpler to just add the ones that are favorite

          • Simplifies the code and fixes the bug: double win!!!

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/hudson/plugins/favorite/filter/FavoriteFilter.java http://jenkins-ci.org/commit/favorite-plugin/6376257036aa2a863423680ff04ee9e142fc5748 Log: [FIXED JENKINS-18604] Simpler to just add the ones that are favorite Simplifies the code and fixes the bug: double win!!!

            lshatzer Larry Shatzer, Jr.
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: