Performing the update
Once you have determined your update path and tested your update, you can perform your SonarQube Server update.
Now that you have Determining the update path and performed the Pre-update steps, you can proceed with your update
Updating a ZIP file instance
Before you update, make sure you know how to Installation overview from the ZIP file and check that your environment Server host requirements of the version you’re updating to.
To update from the ZIP file:
Download and unzip the SonarQube Server distribution of your edition in a fresh directory, let’s say
<newSonarqubeHome>
.If you’re using third-party plugins, manually install plugins that are compatible with your version of SonarQube Server. Use the Plugin version matrix to ensure that the versions you install are compatible with your server version. Simply copying plugins from the old server to the new is not recommended; incompatible or duplicate plugins could cause startup errors. Analysis of all languages provided by your edition is available by default without plugins.
Update the contents of
sonar.properties
file (in<newSonarqubeHome>/conf
) with the settings in the<oldSonarqubeHome>/conf
directory (web server URL, database, ldap settings, etc.). Do not copy-paste the old files. If you are using the Oracle DB, copy its JDBC driver into<newSonarqubeHome>/extensions/jdbc-driver/oracle
.Stop your old SonarQube Server.
Start your new SonarQube Server.
Browse to
http://yourSonarQubeServerURL/setup
and follow the setup instructions.Reanalyze your projects for a better experience.
Updating a Docker image instance
To update SonarQube Server using the Docker image:
Stop and remove the existing SonarQube Server container:
$ docker stop <container_id>
$ docker rm <container_id>
2. Starting SonarQube container.
$> docker run -d --name sonarqube \
-p 9000:9000 \
-e SONAR_JDBC_URL=... \
-e SONAR_JDBC_USERNAME=... \
-e SONAR_JDBC_PASSWORD=... \
-v sonarqube_data:/opt/sonarqube/data \
-v sonarqube_extensions:/opt/sonarqube/extensions \
-v sonarqube_logs:/opt/sonarqube/logs \
<image_name>
where <image_name>
depends on the update target:
for SonarQube Community Build:
sonarqube
for SonarQube Server Editions: check the tags currently available on the DockerHub page.
3. Go to http://yourSonarQubeServerURL/setup
and follow the setup instructions.
4. Reanalyze your projects for a better experience.
Updating a Helm chart instance
Please verify that any custom configurations or custom values.yaml
files contain only parameters that are still compatible with the targeted chart, and adjust them if needed. Some default values assigned to parameters may have changed between versions of the chart,or other parameters could have been removed.
Related pages
Last updated
Was this helpful?