Automatic uninstallation of plugin during upgrade

Environment:

  • SonarQube 6.7.7 (LTS)
  • RHEL 7.6

Is there a way of triggering uninstallation fo a plugin during startup of SonarQube? I can perform installation/upgrade of a plugin by adding the jar to ./extensions/plugins/ but haven’t found a documented way to mark a plugin to be uninstalled.
The reason for asking is that we’re required to handle upgrade of SonarQube as an rpm package and during this process I’d like to uninstall a currently installed plugin (the scm-svn plugin).

To add, the scenario doesn’t necessarily have to be an upgrade. The key thing is that I want to automate uninstallation of an upgrade suitable for an rpm package installation/upgrade.

Hi,

You have the ability to uninstall a plugin through the UI. The change takes effect at restart, so if you really need this, you might look at what the underlying mechanism is to make this work. TBH, this is not something I’ve ever even thought about.

At the same time, I’m curious why you want to uninstall the SVN plugin. Do you mind sharing?

 
Thx,
Ann

Thanks for responding!

We’re only using git and hence the idea was to remove what we’re not using. That could apply to some of the other bundled plugins as well (like the c# plugin).

Hi,

Thanks for sharing!

 
Ann