Sonarcloud and Gradle

Hi,

we are trying to connect our project to Sonarcloud but the analysis won’t start.
we used the recommended properties and nothing come out.

this is what I added to gradle.build file:
plugins {
id “org.sonarqube” version “2.8”
}

sonarqube {
properties {
property “sonar.projectKey”, “123”
property “sonar.organization”, “123”
property “sonar.host.url”, “https://sonarcloud.io
property “sonar.login”, “TOKEN”
}

any suggestions?

Shahar

Hi @shahar2806 and welcome to the community !

First, which CI tool are you using ? Do you have a dedicated task or step to trigger that gradle task ?

Thanks.

Hi,

i managed to solved this issue alone
but i have another question, why in PR’s i don’t see code coverage?
see attached image

thanks,
Shahar