Posts

SonarQube server set up using docker in 10 minutes

Prerequisite      Install docker Go to terminal on Mac and follow below steps docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube The above command downloads sonarqube image and uses h2 database. The sonarcube can be accessed at  http://localhost:9000/abou t By default you can login as  admin   with password   admin , see   authentication . The moment you login you will given a screen to generate the token as below GenerateToken TokenGenerated Steps to integrate your local build to push reports to sonar. Add dependencies as - classpath  "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5" Add the plugin as - apply plugin : 'org.sonarqube' Add properties in gradle.properties -  systemProp.sonar.host.url = http://localhost:9000 systemProp.sonar.login = Token generated in step 5,6 Command to push reports to sonar qube server  gradle s...
Recent posts