How to Upgrade
Note that you can directly upgrade from one version to another. For example, to upgrade from version 3.1 to version 3.5, it is not necessary to first upgrade to version 3.2, then to version 3.3, and so on.
- Check compatibility of installed plugins
- Read upgrade notes below for each version
- Download and unzip the new SonarQube distribution in a fresh directory, let's say NEW_SONARQUBE_HOME
- Update the content of the sonar.properties and wrapper.conf files located in the NEW_SONARQUBE_HOME/conf directory with the content of the related files in the OLD_SONARQUBE_HOME/conf directory (web server URL, database settings, etc.)
- Copy the OLD_SONARQUBE_HOME/extensions/plugins directory into NEW_SONARQUBE_HOME/extensions/plugins (replace plugins with compatible versions if necessary)
- If a custom JDBC driver is used, copy it into NEW_SONARQUBE_HOME/extensions/jdbc-driver/<dialect>
- Back up your database
Start the web server:
- Browse to http://localhost:9000/setup (replace "localhost:9000" by your own URL) and follow the setup instructions
- Analyze your projects to get fresh measures
Release Upgrade Notes
Usually Sonar releases come with some specific recommendations for upgrading from the previous version. You have to read the upgrade notes for all versions between your current version and the target version.