Does upgrading Sonar preserve or chage quality gate configurations?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) Sonarqube 2026.1 LTA Enterprise Edition

  • how is SonarQube deployed: zip

  • what are you trying to achieve

    I’ve recently upgraded my production instance from SonarQube 2025.1 LTA to 2026.1 LTA.

    My question: Does upgrading to a new SonarQube version automatically modify the values/thresholds in custom Quality Gates that were configured in the previous version?

    For example:

    • Let’s say I have a custom Quality Gate called “sonar-latest”
    • In 2025.1 LTA, the “Security Hotspots Reviewed” condition was set to: “is less than 80%”
    • After upgrading to 2026.1 LTA, will this condition automatically change to 100%, or does it preserve my custom configuration?

Hi,

Generally, no.

On rare occasions (once every 3 or 4 years, or so) we change the built-in Sonar way Quality Gate but that wouldn’t affect your custom gates.

On exceedingly rare occasions, we make a change to metrics that then requires quality gates using the affected metrics to be updated. But while I remember that that has happened in the past, it’s been so long ago that I’ve forgotten the details.

So, update with confidence!

 
:slight_smile:
HTH,
Ann