For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration methods

The system properties are the properties used by SonarQube Server 2026.5 at startup and not stored in the database. They can be configured using different methods.

SonarQube utilizes system properties during startup, which are not stored in the database. These properties can be configured through:

  • sonar.properties configuration file You can define system properties through sonar properties (sonar.*) stored in the sonar.properties file.

  • Environment variables You can define system properties through environment variables.

  • Command line You can define system properties in the command line used to start SonarQube.

The properties set through the command line have precedence over the environment variables which have precedence over the sonar.properties file.

See the list of sonar properties considered as system properties, along with the corresponding environment variables:

Once you have set or changed system properties, you must restart SonarQube to apply the changes.

In a ZIP installation

We recommend installing SonarQube Server with the Docker image or the Helm chart. ZIP installation is still supported, but it will be removed in a future release.

The preferred method to manage system properties in a ZIP installation is to edit the sonar.properties file which is stored in <sonarqubeHome>/conf/sonar.properties where <sonarqubeHome> is the location where the SonarQube Server distribution has been unzipped.

To encrypt sensitive system properties stored in sonar.properties, see Sensitive settings.

Use only properties documented in the sonar.properties file. For any other property, SonarQube Server logs a warning at startup. The property is not ignored, but you cannot manage it from the UI or the Web API, and it may have no effect.

In a Docker installation

The preferred method to manage system properties in a Docker installation is to use the environment variables.

System properties can also be edited in the sonar.properties file which is stored in <sonarqubeHome>/conf/sonar.properties where <sonarqubeHome> is the installation directory of SonarQube Server within your container. This path is stored in the SONARQUBE_HOME environment variable.

In a Kubernetes installation

In a Kubernetes installation, a few system properties are set through Helm chart parameters. For example, the Helm chart’s parameter jdbcOverwrite.jdbcUrl corresponds to the sonar property sonar.jdbc.url.

If you need to set additional system properties, you can set them in the Helm chart through:

  • Sonar properties

  • Environment variables

In addition, system properties stored in external Secrets or ConfigMaps can be injected into the Helm chart.

Defining sonar properties

In the SonarQube Helm chart (values.yaml file), use the sonarProperties parameter as illustrated below. This creates a custom sonar.properties file within the Kubernetes cluster.

To encrypt sensitive properties stored in the Helm chart, see Encrypting sensitive data.

Only define system properties through sonarProperties in the Helm chart. For any other property, SonarQube Server logs a warning at startup, because the parameter creates a sonar.properties file. See In a ZIP installation.

Using environment variables

In the Helm chart, you can define system properties through environment variables by using env:.

Injecting external Secrets or ConfigMaps

In environments where another tool, such as terraform or ansible, is used to provision infrastructure or passwords, configuration may be read, via environment variables, from existing Secrets and ConfigMaps.

To do so, proceed as follows:

1. Create a ConfigMap (or Secret) containing key/value pairs, as expected by SonarQube.

2. Set the following in your values.yaml (using the key extraConfig.secrets to reference Secrets)

Last updated

Was this helpful?