What are the steps to upgrade SonarQube from 7.6 to 9.3.0.51899

Must-share information (formatted with Markdown):

  • which versions are you using: SonarQube
  • what are you trying to achieve: Upgrade to newest version
  • what have you tried so far to achieve this: downloaded newest version, modified conf files and copied over plugins.

Welcome :slight_smile:

the upgrade path always goes over the LTS versions. i.e.:
Version xxx > LTS (former) > LTS (former) > LTS > LATEST
In your case 7.6 > 7.9.6 (former LTS) > 8.9.7 (LTS) > 9.3.0 (LATEST)

Get historical versions here Download | SonarQube , scroll down and choose your edition

Beside your own plugins (i.e. custom rules) or community plugins => those should be in
$SONARQUBE_HOME/extensions/plugins/ there’s no need to copy (Sonar) plugins anymore,
as those are integrated in the Sonarqube edition since 8.x

Also the format of $SONARQUBE_HOME/conf/sonar.properties has changed, means it’s
no simple copy of your sonar.properties from 7.6 to 9.3, you need to edit manually.

Do not be surprised, if running on Windows as a service, there are no more
%SONARQUBE_HOME%\bin\windows-x86-64\InstallNTService.bat
%SONARQUBE_HOME%\bin\windows-x86-64\UninstallNTService.bat

see Operating the Server | SonarQube Docs
But that’s no problem, i simply copied them and continue to use them for convenience.

Gilbert

2 Likes