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

Pipeline jobs appear in Search Box suggestions but not Search Results page

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • nested-view-plugin
    • None

      Typing the beginning of a job name in the Search Box shows suggestions in the dropdown of all matching jobs, but upon pressing Enter and being taken to the Search Results page, only Freestyle Project matches are shown and the Pipeline jobs that match (and were in the suggestions) are not in the results. This makes navigating to Pipeline Jobs quite difficult.

      Phrased differently, all jobs matching the query text appear in the JSON response for requests to `/search/suggest?query=...`, howevers jobs with config.xml root element `<flow-definition plugin="workflow-job@...">` do NOT appear in the HTML response for requests to `/search/?q=...`. Only jobs with root element <project> appear in the HTML response.

       

          [JENKINS-66084] Pipeline jobs appear in Search Box suggestions but not Search Results page

          Swati added a comment -

          I am also facing same issue and it will be a blocker if Search doesn't work for pipeline jobs. 

          Swati added a comment - I am also facing same issue and it will be a blocker if Search doesn't work for pipeline jobs. 

          Mark Waite added a comment -

          I can't duplicate the problem that you're seeing. Can you provide other hints about what might be different between search in your installation and mine?

          When I enter the text "mast" into the search box and press enter, the search results page shows all the pipeline jobs for master branches in my multibranch pipeline jobs. When I enter the text "pipeline" into the search box and press enter, the search results page shows the jobs with the word "pipeline" in their name. Several of those jobs are pipeline jobs that are not multibranch pipeline.

          The search result looks like this:

          Mark Waite added a comment - I can't duplicate the problem that you're seeing. Can you provide other hints about what might be different between search in your installation and mine? When I enter the text "mast" into the search box and press enter, the search results page shows all the pipeline jobs for master branches in my multibranch pipeline jobs. When I enter the text "pipeline" into the search box and press enter, the search results page shows the jobs with the word "pipeline" in their name. Several of those jobs are pipeline jobs that are not multibranch pipeline. The search result looks like this:

          Swati added a comment -

          I am using latest LTS version: 2.289.2.

          When I search for freestyle job, its shows the name in search box and when I hit enter, it shows the result. But when I search for pipeline job, it shows the name in the search box and when I hit enter, it doesn't show the result. 

          Swati added a comment - I am using latest LTS version: 2.289.2. When I search for freestyle job, its shows the name in search box and when I hit enter, it shows the result. But when I search for pipeline job, it shows the name in the search box and when I hit enter, it doesn't show the result. 

          Mark Waite added a comment -

          The screenshots that you included schugh show something that I can't duplicate with my search. It appears that your Jenkins search box has been extended in some way to add more capabilities than mine has. You may need to locate the Jenkins plugin that is adding more functionality to the search box.

          Mark Waite added a comment - The screenshots that you included schugh show something that I can't duplicate with my search. It appears that your Jenkins search box has been extended in some way to add more capabilities than mine has. You may need to locate the Jenkins plugin that is adding more functionality to the search box.

          Swati added a comment -

          Looks like issue I was facing was related to https://issues.jenkins.io/browse/JENKINS-65924. I reverted nested view plugin to previous version and it seems to be working. 

          Swati added a comment - Looks like issue I was facing was related to https://issues.jenkins.io/browse/JENKINS-65924 . I reverted nested view plugin to previous version and it seems to be working. 

          Also confirmed that disabling the nested-view plugin resolves the search issue.

          Jason Stangroome added a comment - Also confirmed that disabling the nested-view plugin resolves the search issue.

            Unassigned Unassigned
            jstangroome Jason Stangroome
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: