SQ Official Doc Link: https://docs.sonarqube.org/display/SONAR/Update+Center
Table of Contents
Administrators can access the Update Center via Administration > System > Update Center. The Update Center is the place for keeping the SonarQube platform up to date. It lets you:
See
- Installed plugins
- Plugin updates
- Other plugins that are compatible with your version of the platform
- Platform updates
Install
- New plugins
- Plugin updates
To use most of these functions (other than listing currently installed plugins), your SonarQube server needs Internet access. Installations require the platform to be restarted before they take effect.
Installed Plugins
This view displays the list of installed plugins and the list of system plugins. Upgrade availability is indicated inline with the addition of an Upgrade button, and plugins can be uninstalled by clicking on the Uninstall button.
Available Plugins
This view shows plugins available for your SonarQube version. They can be installed by a simple click on Install:
System Updates
This view shows new SonarQube versions available, and any plugin changes that would be required for the upgrade (the vast majority of plugins maintain compatibility from one platform version to the next). Installation of new SonarQube versions is manual.
Pending Operations
When taking an action in the update center (installing, updating or uninstalling a plugin), a yellow area appears at the top of the page showing pending operations that will be executed once SonarQube is restarted. Pending operations can be canceled until the server is restarted:
Using the Update Center behind a Proxy
Update Center uses HTTP(S) connections to external servers to provide these services. If SonarQube is located behind a proxy, additional information must be provided in the SONAR_HOME/conf/sonar.properties configuration file:
http.proxyHost=<your.proxy.host> http.proxyPort=<yout.proxy.port> #If proxy authentication is required http.proxyUser=<your.proxy.user> http.proxyPassword=<your.proxy.password>
Note: the same properties can be used in the 'https.' form for HTTPS connections
Restart SonarQube
Restarting SonarQube can be done manually from the command line by running sonar.sh restart
or directly from the UI :
- in the Update Center when you have Pending Changes, the restart button will be displayed in the yellow banner (see Pending Operations)
- in the System Info page at any time
Manual Updates
If your server has no access to the internet, then you won't be able to rely on the Update Center for plugins, and will have to handle plugin installations and upgrades manually.
To know what plugins are available and which version of a plugin is appropriate for your server, use the plugin version matrix, which is kept up to date with plugin availability and compatibility.
To install a plugin, simply download it using the manual download link on the plugin documentation page, place it in [sonarqube-home]/extensions/downloads, and restart the server.