Getting started with SonarQube on Scalingo
SonarQube is an automatic code review tool to detect bugs, vulnerabilities, and code smells in your code. It can integrate with your existing workflow to enable continuous code inspection across your project branches and pull requests.
This tutorial will show you how to deploy a SonarQube instance on Scalingo in under 2 minutes.
We published a repository scalingo-sonarqube on GitHub to help you deploy SonarQube on Scalingo. Deploying a SonarQube instance is now at a click range:
By default, Scalingo installs the version declared in the buildpack here. At the time of writing this version is
220.127.116.11680. You may want to install an older or more recent version.
By default, SonarQube asks you for a login and a password. The defaults are
admin. After the first successful login, SonarQube asks you to update the admin password.
Install a SonarQube Plugin
You may want to install a SonarQube plugin. In such situation, fork the scalingo-sonarqube repository. Then copy the plugin JAR archive into the
plugins folder. Commit the content of this repository, and push it to Scalingo. Your SonarQube instance will have the plugin installed.
Deploy a Specific SonarQube Version
By default, Scalingo installs the SonarQube version 18.104.22.168681. You can install the version of your choice by adding the environment variable
SONARQUBE_VERSION to your application. For example: