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

Available plugins list is empty

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • core
    • Open JDK 1.8.0_252
      Ubuntu 18.04.4
      Jenkins 2.235.2

    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

            timja Tim Jacomb added a comment -

            This was switched quite awhile back to show the top ~50 plugins or so. no complaints since then

            timja Tim Jacomb added a comment - This was switched quite awhile back to show the top ~50 plugins or so. no complaints since then
            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

            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
            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

            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
            borisivan boris ivan added a comment -

            danielbeck 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.

            borisivan boris ivan added a comment - danielbeck 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.
            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

            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

            People

              Unassigned Unassigned
              digz6666 Batbayar Bazarragchaa
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: