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

Available plugins list is empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Open JDK 1.8.0_252
      Ubuntu 18.04.4
      Jenkins 2.235.2
    • Similar Issues:

      Description

      Available plugins list is empty.

      Installed plugins is visible and plugin update works fine.

       

      In jenkins.log it has following:

      2020-07-18 04:49:04.420+0000 [id=380] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
      2020-07-18 04:49:05.169+0000 [id=380] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
      2020-07-18 04:49:06.420+0000 [id=380] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller
      2020-07-18 04:49:07.714+0000 [id=380] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.plugins.nodejs.tools.NodeJSInstaller
      2020-07-18 04:49:09.976+0000 [id=380] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tools.JDKInstaller
      2020-07-18 04:49:09.976+0000 [id=380] INFO hudson.util.Retrier#start: Performed the action check updates server successfully at the attempt #1

        Attachments

          Issue Links

            Activity

            Hide
            dcleland David Cleland added a comment - - edited

            I found the same thing with Jenkins 2.235.2 under Win10 Pro.

            The data is definitely there, just not being shown. I found that if you type into the Search field and know some 'word' in the plugin then you will get a list.

            e.g. when I typed 'scm' into the search field suddenly 30+ plugins appeared in the list.

            It also appears you need to type two characters minimum into the search field, so you cannot just type 'e' and hope to get all plugins listed.

            Show
            dcleland David Cleland added a comment - - edited I found the same thing with Jenkins 2.235.2 under Win10 Pro. The data is definitely there, just not being shown. I found that if you type into the Search field and know some 'word' in the plugin then you will get a list. e.g. when I typed 'scm' into the search field suddenly 30+ plugins appeared in the list. It also appears you need to type two characters minimum into the search field, so you cannot just type 'e' and hope to get all plugins listed.
            Hide
            digz6666 Batbayar Bazarragchaa added a comment -

            David Cleland good find, the data is there. Typed something and the search works.

            Show
            digz6666 Batbayar Bazarragchaa added a comment - David Cleland good find, the data is there. Typed something and the search works.
            Hide
            ianw Ian Williams added a comment - - edited

            That is the expected behavior. According to the releases notes for [LTS 2.235.1 (changes since 2.224.1)|https://www.jenkins.io/changelog-stable,]

            Various improvements to the plugin manager, including: It no longer shows all available plugins by default; use search field to find plugins. They are now sorted by popularity by default. Additionally, categories are no longer used to group plugins, instead they're shown as labels. (issue 61166, pull 4580pull 4513pull 4588pull 4534pull 4591pull 4535pull 4589pull 4584)

            Show
            ianw Ian Williams added a comment - - edited That is the expected behavior. According to the releases notes for [LTS 2.235.1 (changes since 2.224.1)| https://www.jenkins.io/changelog-stable ,] Various improvements to the plugin manager, including: It no longer shows all available plugins by default; use search field to find plugins. They are now sorted by popularity by default. Additionally, categories are no longer used to group plugins, instead they're shown as labels. (issue 61166,  pull 4580 ,  pull 4513 ,  pull 4588 ,  pull 4534 ,  pull 4591 ,  pull 4535 ,  pull 4589 ,  pull 4584 )
            Hide
            dcleland David Cleland added a comment -

            This is a very badly thought out change, which causes confusion and makes it impossible to explore and find new plugins, which is how I setup my first Jenkins system.

            I now am moving from a very old Jenkins system and a bunch of plugins that I used to use seem to have gone, and now I cannot find their replacements.

            There is no obvious wildcard method to see all available plugins. I tried , ., ., ?, **

            Apply the same logic to the other tabs and see how bad an idea this actually is.

            This change should be reverted.

             

            Show
            dcleland David Cleland added a comment - This is a very badly thought out change, which causes confusion and makes it impossible to explore and find new plugins, which is how I setup my first Jenkins system. I now am moving from a very old Jenkins system and a bunch of plugins that I used to use seem to have gone, and now I cannot find their replacements. There is no obvious wildcard method to see all available plugins. I tried , . , . , ? , ** Apply the same logic to the other tabs and see how bad an idea this actually is. This change should be reverted.  
            Hide
            klm Ken Morse added a comment -

            This does seem like an odd change and it first glance it just looks like the list isn't properly updating. 

            Show
            klm Ken Morse added a comment - This does seem like an odd change and it first glance it just looks like the list isn't properly updating. 
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            David Cleland Ken Morse the change is a first step in the UI/UX update which also save time due to performance overheads.  What we discussed with Daniel Beck a few weeks ago is sugesting quick access to the most popular plugins and labels when there is no search query entered. It should add some content to the now-empty-by-default page. What would you say about such change?

             

            Show
            oleg_nenashev Oleg Nenashev added a comment - David Cleland Ken Morse the change is a first step in the UI/UX update which also save time due to performance overheads.  What we discussed with Daniel Beck  a few weeks ago is sugesting quick access to the most popular plugins and labels when there is no search query entered. It should add some content to the now-empty-by-default page. What would you say about such change?  
            Hide
            dcleland David Cleland added a comment -

            If you show the way to display all plugins and how to search for other plugins that would be fine.

            Adding something like the following to the tab, similar to the Updates tab would help

            Show: All, Popular, None

            However, what it also needs is some text explaining how the search field works. After a lot of experimentation I managed to get various lists of plugins. Still don't know if typing 'All' is displaying all the available plugins.

            I am not sure of the value of labels for searching on this tab, as they only work if you know what they are, or if you list all of them on the tab. Labels generally seem to be hidden away most of the time on the other tabs. The only place I can see one is on my 'Updates' tab where the Timestamper is labeled as 'Build Wrappers'. On the Installed tab there are no labels, so that doesn't help to find out what they are.

            Show
            dcleland David Cleland added a comment - If you show the way to display all plugins and how to search for other plugins that would be fine. Adding something like the following to the tab, similar to the Updates tab would help Show: All, Popular, None However, what it also needs is some text explaining how the search field works. After a lot of experimentation I managed to get various lists of plugins. Still don't know if typing 'All' is displaying all the available plugins. I am not sure of the value of labels for searching on this tab, as they only work if you know what they are, or if you list all of them on the tab. Labels generally seem to be hidden away most of the time on the other tabs. The only place I can see one is on my 'Updates' tab where the Timestamper is labeled as 'Build Wrappers'. On the Installed tab there are no labels, so that doesn't help to find out what they are.
            Hide
            klm Ken Morse added a comment - - edited

            Oleg Nenashev – yes, I think that would help. Otherwise at the very least the "Use the search field above to search for available plugins" should probably change as it sounds optional. Something like "You must use the search field above to get a list of available plugins" might be more appropriate if you don't go forward with what you or David Cleland suggest.

            Show
            klm Ken Morse added a comment - - edited Oleg Nenashev – yes, I think that would help. Otherwise at the very least the "Use the search field above to search for available plugins" should probably change as it sounds optional. Something like "You must use the search field above to get a list of available plugins" might be more appropriate if you don't go forward with what you or David Cleland suggest.
            Hide
            danielbeck Daniel Beck added a comment - - edited

            There is no obvious wildcard method to see all available plugins.

            Type any 2+ character substring of plugins.jenkins.io. Not an "official" workaround, but works based on how the matching is currently implemented.

            Apply the same logic to the other tabs and see how bad an idea this actually is.

            The reason I did that is that the other tabs show something different; plugins you have installed. "Available" shows plugins you don't have installed. It's the difference between Springboard/home screen and App Store.

            While there's clearly still a discovery problem, simply continuing to list everything there is, which might have been reasonable when there were 200 plugins, just isn't useful with almost 2000.

            Show
            danielbeck Daniel Beck added a comment - - edited There is no obvious wildcard method to see all available plugins. Type any 2+ character substring of plugins.jenkins.io . Not an "official" workaround, but works based on how the matching is currently implemented. Apply the same logic to the other tabs and see how bad an idea this actually is. The reason I did that is that the other tabs show something different; plugins you have installed. "Available" shows plugins you don't have installed. It's the difference between Springboard/home screen and App Store. While there's clearly still a discovery problem, simply continuing to list everything there is, which might have been reasonable when there were 200 plugins, just isn't useful with almost 2000.
            Hide
            ianw Ian Williams added a comment -

            I think this change has made for a rather poor user experience.

            Upon loading the page, the Available tab body displays "Plugin list is loading ...". When "done", instead of seeing the populated table it displays " Use the search field above to search for available plugins."

            But experienced users are used to seeing a full list of plugins and react as OP did - "Hey something is missing!"

            New users will have no idea what to search for. Even experienced users could be confused. Must you search by name, labels (what are the labels, where is the list ?), does it match descriptor ... ?

             

            A user cannot be expected to scroll down the release notes (further w/every release) and find the reflected notes

            "  It no longer shows all available plugins by default; use search field to find plugins. They are now sorted by popularity by default."

            provides little guidance without reading the PRs and issues; most people don't even scroll the LTS notes!

            The Managing Plugins Documentation page is not updated to reflect the new UI either.

             

            Some suggestions:

            • Provide a help icon beside the search box with a detailed search explanation (Similar as on other pages (configure, job, etc.))
            • Documentation - Update the Managing Plugins page to reflect new usage pattern. Installation page could be cleaned up too.
            • Provide pre-filled guidance in the Search box - "Start typing to match names or labels ( wildcard"*" or "%")" that disappears when you focus tor type the box.
            • Given the plugin list is already loaded just not displayed, provide a radio button " ( o ) Show all plugins " option
            • Make the Search field dual purpose; add a drop-down list of labels to choose from
            Show
            ianw Ian Williams added a comment - I think this change has made for a rather poor user experience. Upon loading the page, the Available tab body displays "Plugin list is loading ...". When "done", instead of seeing the populated table it displays " Use the search field above to search for available plugins." But experienced users are used to seeing a full list of plugins and react as OP did - "Hey something is missing!" New users will have no idea what to search for. Even experienced users could be confused. Must you search by name, labels (what are the labels, where is the list ?), does it match descriptor ... ?   A user cannot be expected to scroll down the release notes (further w/every release) and find the reflected notes "  It no longer shows all available plugins by default; use search field to find plugins. They are now sorted by popularity by default." provides little guidance without reading the PRs and issues; most people don't even scroll the LTS notes! The Managing Plugins Documentation page is not updated to reflect the new UI either.   Some suggestions: Provide a help icon beside the search box with a detailed search explanation (Similar as on other pages (configure, job, etc.)) Documentation - Update the Managing Plugins page to reflect new usage pattern. Installation page could be cleaned up too. Provide pre-filled guidance in the Search box - "Start typing to match names or labels ( wildcard"*" or "%")" that disappears when you focus tor type the box. Given the plugin list is already loaded just not displayed, provide a radio button " ( o ) Show all plugins " option Make the Search field dual purpose; add a drop-down list of labels to choose from
            Hide
            ianw Ian Williams added a comment -

            One other visual indicator might be to show a dynamic total in the tab itself of the total # of plugins matching the search criteria over / the total available.

            Installed and Updates tab can show respective totals as well

            Show
            ianw Ian Williams added a comment - One other visual indicator might be to show a dynamic total in the tab itself of the total # of plugins matching the search criteria over / the total available. Installed and Updates tab can show respective totals as well
            Hide
            borisivan boris ivan added a comment -

            Daniel Beck regarding "While there's clearly still a discovery problem, simply continuing to list everything there is, which might have been reasonable when there were 200 plugins, just isn't useful with almost 2000."

            For scenarios like this, I think changing the default behavior to not show everything is fine. But there should be a non default behavior available that still allows one to see all the plugins, like a 'show all' button or something. Requiring the user to know what to search for is a bad user experience.

            Show
            borisivan boris ivan added a comment - Daniel Beck regarding "While there's clearly still a discovery problem, simply continuing to list everything there is, which might have been reasonable when there were 200 plugins, just isn't useful with almost 2000." For scenarios like this, I think changing the default behavior to not show everything is fine. But there should be a non default behavior available that still allows one to see all the plugins, like a 'show all' button or something. Requiring the user to know what to search for is a bad user experience.
            Hide
            tonny Tonny added a comment - - edited

            How to fix "Unable to find plugins in list of available plugins in jenkins" issue steps:

            Following
            https://github.com/jenkinsci/jenkins/pull/4580/files/b9e4d4c0a80ede667f387d43dc71e4d8b004e0a3
            We know the core of issue here:
            <local:table page="available" list="${app.updateCenter.availables}" filtered="true" xmlns:local="/hudson/PluginManager" />
            So we need modify the code with:
            <local:table page="available" list="${app.updateCenter.availables}" filtered="false" xmlns:local="/hudson/PluginManager" />

            Exmaple (2.235.5 as example)(the tag comes from https://github.com/jenkinsci/jenkins/releases?after=jenkins-2.241)
            1. Download Jenkins codes
            mkdir D:\Code\jenkins_compile
            cd /d D:\Code\jenkins_compile
            git clone https://github.com/jenkinsci/jenkins.git
            cd jenkins
            git reset --hard
            git status
            git checkout jenkins-2.235
            git status

            2. Modify core\src\main\resources\hudson\PluginManager\available.jelly
            before
            <local:table page="available" list="${app.updateCenter.availables}" filtered="true" xmlns:local="/hudson/PluginManager" />
            after
            <local:table page="available" list="${app.updateCenter.availables}" filtered="false" xmlns:local="/hudson/PluginManager" />

            3. Compile Jenkins codes
            cd /d D:\Code\jenkins_compile\jenkins
            mvn clean
            mvn -Dmaven.test.skip=true install
            cd /d D:\Code\jenkins_compile\jenkins\war\target
            explorer .

            we will get jenkins.war file.

            4. Re-Deploy the jenkins.war

            5. The available plugins list will be shown.

            You are welcome!
            My Email: happy.every.day@126.com
            2021.03.31

            PS:

            jenkins-2.263.4 is also ok.

            git checkout jenkins-2.263.4

            Show
            tonny Tonny added a comment - - edited How to fix "Unable to find plugins in list of available plugins in jenkins" issue steps: Following https://github.com/jenkinsci/jenkins/pull/4580/files/b9e4d4c0a80ede667f387d43dc71e4d8b004e0a3 We know the core of issue here: <local:table page="available" list="${app.updateCenter.availables}" filtered="true" xmlns:local="/hudson/PluginManager" /> So we need modify the code with: <local:table page="available" list="${app.updateCenter.availables}" filtered="false" xmlns:local="/hudson/PluginManager" /> Exmaple (2.235.5 as example)(the tag comes from https://github.com/jenkinsci/jenkins/releases?after=jenkins-2.241 ) 1. Download Jenkins codes mkdir D:\Code\jenkins_compile cd /d D:\Code\jenkins_compile git clone https://github.com/jenkinsci/jenkins.git cd jenkins git reset --hard git status git checkout jenkins-2.235 git status 2. Modify core\src\main\resources\hudson\PluginManager\available.jelly before <local:table page="available" list="${app.updateCenter.availables}" filtered="true" xmlns:local="/hudson/PluginManager" /> after <local:table page="available" list="${app.updateCenter.availables}" filtered="false" xmlns:local="/hudson/PluginManager" /> 3. Compile Jenkins codes cd /d D:\Code\jenkins_compile\jenkins mvn clean mvn -Dmaven.test.skip=true install cd /d D:\Code\jenkins_compile\jenkins\war\target explorer . we will get jenkins.war file. 4. Re-Deploy the jenkins.war 5. The available plugins list will be shown. You are welcome! My Email: happy.every.day@126.com 2021.03.31 PS: jenkins-2.263.4 is also ok. git checkout jenkins-2.263.4
            Hide
            tonny Tonny added a comment - - edited

            How to fix "Unable to find plugins in list of available plugins in jenkins" issue steps for 2.277.4:

            Following
            https://github.com/jenkinsci/jenkins/compare/jenkins-2.263.4...jenkins-2.277.4
            We know the core of issue here(core\src\main\resources\hudson\PluginManager\available.jelly)(2.263.4):
            <local:table page="available" list="${app.updateCenter.availables}" filtered="true" xmlns:local="/hudson/PluginManager" />
            So we need modify the code with(war\src\main\js\plugin-manager-ui.js)(2.277.4):

            before:
            pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50, function (plugins) {

            after:

            pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50000, function (plugins) {

            Exmaple (2.277.4 as example)
            1. Download Jenkins codes
            mkdir D:\Code\jenkins_compile
            cd /d D:\Code\jenkins_compile
            git clone https://github.com/jenkinsci/jenkins.git
            cd jenkins
            git pull
            git reset --hard
            git status
            git checkout jenkins-2.277.4
            git status

            2. Modify war\src\main\js\plugin-manager-ui.js

            cmd-->
            cd /d D:\Code\jenkins_compile\jenkins
            code war\src\main\js\plugin-manager-ui.js

            before
            pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50, function (plugins) {
            after
            pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50000, function (plugins) {

            3. Compile Jenkins codes
            cd /d D:\Code\jenkins_compile\jenkins
            mvn clean
            mvn -Dmaven.test.skip=true install
            cd /d D:\Code\jenkins_compile\jenkins\war\target
            explorer .

            we will get jenkins.war file.

            4. Re-Deploy the jenkins.war

            5. The available plugins list will be shown.

            You are welcome!
            My Email: happy.every.day@126.com
            2021.08.07

            Show
            tonny Tonny added a comment - - edited How to fix "Unable to find plugins in list of available plugins in jenkins" issue steps for 2.277.4: Following https://github.com/jenkinsci/jenkins/compare/jenkins-2.263.4...jenkins-2.277.4 We know the core of issue here(core\src\main\resources\hudson\PluginManager\available.jelly)(2.263.4): <local:table page="available" list="${app.updateCenter.availables}" filtered="true" xmlns:local="/hudson/PluginManager" /> So we need modify the code with(war\src\main\js\plugin-manager-ui.js)(2.277.4): before: pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50, function (plugins) { after: pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50000, function (plugins) { Exmaple (2.277.4 as example) 1. Download Jenkins codes mkdir D:\Code\jenkins_compile cd /d D:\Code\jenkins_compile git clone https://github.com/jenkinsci/jenkins.git cd jenkins git pull git reset --hard git status git checkout jenkins-2.277.4 git status 2. Modify war\src\main\js\plugin-manager-ui.js cmd--> cd /d D:\Code\jenkins_compile\jenkins code war\src\main\js\plugin-manager-ui.js before pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50, function (plugins) { after pluginManager.availablePluginsSearch(searchQuery.toLowerCase().trim(), 50000, function (plugins) { 3. Compile Jenkins codes cd /d D:\Code\jenkins_compile\jenkins mvn clean mvn -Dmaven.test.skip=true install cd /d D:\Code\jenkins_compile\jenkins\war\target explorer . we will get jenkins.war file. 4. Re-Deploy the jenkins.war 5. The available plugins list will be shown. You are welcome! My Email: happy.every.day@126.com 2021.08.07

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              digz6666 Batbayar Bazarragchaa
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: