How to upgrade SonarQube server

If you followed my blog on How to setup a SonarQube server in Azure using this blog will show you how to upgrade it.

  1. Take inventory for plugins installed on current version.
  2. Download desired version from https://www.sonarqube.org/downloads/
  3. Once the download is complete unblock the file
    1. Right-click the zip
    2. Click the unblock button
  4. Unzip into new location leaving the old server folder
  5. Using Services stop your SonarQube
  6. Using the batch file in \bin of current server run UninstallNTService.bat
  7. Using Sql Server Management Studio to back up your database
  8. Copy settings from \conf\sonar.properties file to new install
    1. Do not copy entire file
  9. Using the batch file in \bin of new server run InstallNTService.bat
  10. Using Services change the Log on as as described in I can’t run SonarQube as a Windows Service
  11. Using Services start server
  12. Visit http://yourserver/setup and follow the directions
  13. Re-install/Upgrade plugins

Comments (7) -

  • Because I hate when I do this (and as actual proof someone read the post ;)

    "4. Unzip into new location leaving the odd server folder..."

    odd folder? lol
    • In my defense it was old and odd! LOL  Thanks for the catch. I will correct.
  • Hi Donovan,
    Can you can share any scripts that you used to automate some or all of the upgrade process?
    Thanks
    Mike
    • I did not use any scripts.
      • All the batch files are in the zip you download.
  • Is there CLI commands for this step?
    Visit http://yourserver/setup and follow the directions

Add comment

Loading