Installing SonarQube Community (Free) on a Server for Use with Azure Devops (Part 1: Installation)

The first thing that you need to do is visit and download the latest community edition. Get the LTS if you are worried about having issues in the future.

Make sure to get LTS if you need it

The next thing you will want to do is download JDK version 8. Make sure that you only download version 8 because it is the only supported version. SonarQube recommends getting the CPU versions of the JRE/JDK.

Take Note of the Destination path, you will need that for later
Extract the SonarQube Zip to a folder of your choice that starts with Letter. (i.e. C:\SonarQube)

Set up your SQL database as outlined here. Don’t use the embedded database or you will be stuck like this guy.

Go to C:/SonarQube/conf/ and do the following:

  1. Put in the credentials and url to your database in the appropriate section
  2. Setup elastic search to be on a high-performing drive that is used only for this purpose (for performant server)
  3. Configure the host and port for the app
  4. Uncomment the line: sonar.web.javaOpts=-server (for performant server)
Go to C:/SonarQube/bin/windows-x86-32 and run the StarSonar Batch File
Open C:/SonarQube/conf/wrapper.conf
Change this line to your JDK path if this is running on a performant server.

This article heavily references the links below. For more information please visit them:

Leave a Reply

Your email address will not be published. Required fields are marked *