Start Free
SonarQube Community Build | Server upgrade and maintenance | Upgrade | Performing the upgrade

Performing the upgrade

On this page

Now that you have determined your upgrade path and performed the pre-upgrade steps, you can proceed with your upgrade.

Upgrading a ZIP file instance

Before you upgrade, make sure you know how to install SonarQube from the ZIP file and check that your environment meets the requirements of your target version.

To upgrade from the ZIP file:

  1. Download and unzip the SonarQube Community Build distribution in a fresh directory, let's say <newSonarqubeHome>.
  2. If you're using third-party plugins, manually install plugins that are compatible with your version of SonarQube Community Build. Use the plugin version matrix to ensure that the versions you install are compatible with your SoanrQube version. Simply copying plugins from the old instance to the new is not recommended; incompatible or duplicate plugins could cause startup errors. 
  3. 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.
  4. Stop your old SonarQube Community Build.
  5. Start your new SonarQube Community Build.
  6. Browse to http://yourSonarQubeURL/setup and follow the setup instructions.
  7. Reanalyze your projects for a better experience. 

Upgrading a Docker image instance

To upgrade SonarQube Community Build using the Docker image:

  1. Stop and remove the existing SonarQube Community Build container:
$ docker stop <container_id>
$ docker rm <container_id>

2. Run Docker.

$> 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 upgrade target:

  • for SonarQube Community Build:   sonarqube
  • for SonarQube Server Editions: check the tags currently available on the DockerHub page.

3. Go to http://yourSonarQubeURL/setup and follow the setup instructions.

4. Reanalyze your projects for a better experience.

Upgrading a Helm chart instance

Standard procedure
  1. Change the SonarQube Community Build version parameter (image.tag) on your values.yaml.
    Example: image:  sonarqube:25.2.0.102705-community
  2. Redeploy SonarQube Community Build with the same helm chart:
helm upgrade --install -f values.yaml -n <yourNamespace> <yourReleaseName> <pathToSonarqubeHelmChart>

4. Go to http://yourSonarQubeURL/setup and follow the setup instructions.

5. Reanalyze your projects to get fresh data.


Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License