Sonar integration for Android and Azure Pipeline

Hi everyone,

I’m trying to configure sonar in order to have the coverage of my app in my sonarQube server (Jacoco, working, reports generated)

But I can’t make sonar work, i’ve read about the file at the root of the application folder in order to have the configuration shared by my app and my pipeline but as I can see during my tests, this file is not used by neither my Android Studio nor the Azure pipeline. So I don’t know what I’m missing with this.

My goal is to have one configuration shared by Android Studio and the Azure pipeline.

Will I have to choose another method (sonar block in build.gradle or another?) but i’m not sure if the pipeline is going to pick the properties from the gradle. If anyone got some experience with this or can help me it would be perfect.

Don’t hesitate if there is some informations missing.

Thanks !

I’m with :

  • Sonarqube in version
  • Android Gradle Plugin 7.4.2
  • Kotlin DSL
  • Version Catalog
  • Kotlin 1.8.22


Welcome to the community!

SonarScanner for Gradle doesn’t read You’ll need to set your properties in your build.gradle



Ok, so gonna move the conf to build.config.

Thanks for the info !