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

Unable to uninstall plugin that is an optional dependency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins 2.46.2.
    • Similar Issues:

      Description

      Jenkins refuses to enable "Uninstall" button for a plugin that is an optional dependency of another plugin. For example if I install "git" plugin (Jenkins CLI's "install-plugin git" command), it doesn't install, for example, "token-macro" plugin that is an optional dependency for git plugin. But if I then happen to install token-macro plugin, Jenkins refuses to enable Uninstall button for it with following message:

      "This plugin cannot be uninstalled. It has one or more installed dependants: Git plugin."

      This also happens with other plugins that are/have optional dependencies. Jenkins should be able to uninstall plugins that are not a required dependency of any other plugin.

        Attachments

          Issue Links

            Activity

            ejusjud Jussi Judin created issue -
            Hide
            keerthik Keerthi Korivi added a comment - - edited

            Hi Judin,

            Do you still see this issue? I could uninstall token-macro and i had to restart the server to see the token-macro plugin back in the list of available plugins. 

            Thanks,

            Keerthi

            Show
            keerthik Keerthi Korivi added a comment - - edited Hi Judin, Do you still see this issue? I could uninstall token-macro and i had to restart the server to see the token-macro plugin back in the list of available plugins.  Thanks, Keerthi
            Hide
            ejusjud Jussi Judin added a comment - - edited

            As a detail, I restarted Jenkins after plugin installation. Because when I installed the Token macro plugin after installing Git plugin (restart after git plugin installation) and didn't restart, I still had the Uninstall button visible. But it disappeared after a restart.

            I re-tested this with Jenkins 2.59 and it's still an issue.

            Show
            ejusjud Jussi Judin added a comment - - edited As a detail, I restarted Jenkins after plugin installation. Because when I installed the Token macro plugin after installing Git plugin (restart after git plugin installation) and didn't restart, I still had the Uninstall button visible. But it disappeared after a restart. I re-tested this with Jenkins 2.59 and it's still an issue.
            Hide
            danielbeck Daniel Beck added a comment -

            Essentially the same as JENKINS-33843.

            Show
            danielbeck Daniel Beck added a comment - Essentially the same as JENKINS-33843 .
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-33843 [ JENKINS-33843 ]
            danielbeck Daniel Beck made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ejusjud Jussi Judin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: