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

Plugin Oracle Java SE Development Kit Installer cannot be uninstalled

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jdk-tool-plugin
    • None
    • jenkins-2.346.2-1.1.noarch

      This plugin cannot be uninstalled - clicking the "remove" button in the UI does nothing to remove it - it says "pending"  but after a restart the plugin is still there and active.

      The plugin can be deactivated, but this does not prevent the notifications of an "update" from being shown.

      If physically removing the files, they are downloaded on the next Jenkins restart. How do I get rid of a plugin I do not need (and which I never installed)?

      The jdk-tool plugin is an implied dependency of a large number of plugins because it was once bundled inside Jenkins core. A detailed description of implied plugin dependencies and how to resolve them is included in JENKINS-70301. The Jenkins plugins site describes implied dependencies by saying:

      Features are sometimes detached (or split off) from Jenkins core and moved into a plugin. Many plugins, like Subversion or JUnit, started as features of Jenkins core.

      Plugins that depend on a Jenkins core version before such a plugin was detached from core may or may not actually use any of its features. To ensure that plugins don't break whenever functionality they depend on is detached from Jenkins core, it is considered to have a dependency on the detached plugin if it declares a dependency on a version of Jenkins core before the split. Since that dependency to the detached plugin is not explicitly specified, it is implied.

      Plugins that don't regularly update which Jenkins core version they depend on will accumulate implied dependencies over time.

      The WMI Windows agent plugin was previously a widely used implied plugin dependency that has been successfully removed. https://github.com/jenkinsci/jenkins/pull/7568 describes that process.

          [JENKINS-69186] Plugin Oracle Java SE Development Kit Installer cannot be uninstalled

          kredens added a comment -

          Seriously - what the heck?! Either merge it back into core if it's such a core feature that it cannot be uninstalled, or let us remove it.

          Who installs Oracle's JDK anyway with their clunky and riddled with mines licensing model?

          Ridiculous.

          kredens added a comment - Seriously - what the heck?! Either merge it back into core if it's such a core feature that it cannot be uninstalled, or let us remove it. Who installs Oracle's JDK anyway with their clunky and riddled with mines licensing model? Ridiculous.

          Vittorio added a comment -

          I think that it is caused by the other issue that I have just linked: it is a problem of Jenkins core, which afflicts several plugins.

          If you hover the disable toggle of a plugin and Jenkins warns you that some other plugins may need it, then Jenkins will let you disable it anyway; after a restart the plugin will still be disabled.

          Jenkins even let you uninstall it, but after the restart Jenkins will install it back, because those other plugins may need it. Definitely a bug to solve.

          Vittorio added a comment - I think that it is caused by the other issue that I have just linked: it is a problem of Jenkins core, which afflicts several plugins. If you hover the disable toggle of a plugin and Jenkins warns you that some other plugins may need it, then Jenkins will let you disable it anyway; after a restart the plugin will still be disabled. Jenkins even let you uninstall it, but after the restart Jenkins will install it back, because those other plugins may need it . Definitely a bug to solve.

          Vittorio added a comment -

          In my case Jenkins gives me this warning when I hover the disable toggle of the Oracle Java SE Development Kit Installer plugin:

           

          So in order to uninstall the Oracle Java SE Development Kit Installer plugin, I either wait that the linked Jenkins core issue is fixed or I uninstall these 4 plugins before the Oracle Java SE Development Kit Installer plugin.

          Vittorio added a comment - In my case Jenkins gives me this warning when I hover the disable toggle of the Oracle Java SE Development Kit Installer plugin:   So in order to uninstall the Oracle Java SE Development Kit Installer plugin, I either wait that the linked Jenkins core issue is fixed or I uninstall these 4 plugins before the Oracle Java SE Development Kit Installer plugin.

          Vittorio added a comment -

          I confirm that I have managed to uninstall the Oracle Java SE Development Kit Installer plugin only after that I have uninstalled the other 4 plugins shown in the screenshot of my previous message; I have even restarted Jenkins between the uninstallation of the 4 plugins and the uninstallation of the Oracle Java SE Development Kit Installer plugin.

          I know that this workaround may not work for everybody, but I hope it helps.

          Vittorio added a comment - I confirm that I have managed to uninstall the Oracle Java SE Development Kit Installer plugin only after that I have uninstalled the other 4 plugins shown in the screenshot of my previous message; I have even restarted Jenkins between the uninstallation of the 4 plugins and the uninstallation of the Oracle Java SE Development Kit Installer plugin. I know that this workaround may not work for everybody, but I hope it helps.

            Unassigned Unassigned
            assen_totin Assen Тотин
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: