Multi Module Gradle/Jenkins


(David) #1

Using Gradle Plugin 2.6.2.

It appears that the scan is not respecting sonar.projectBaseDir. When I run the scan locally using Sonar Scanner 3.2 everything works as expected. However when the job runs on Jenkins using 2.6.2 Gradle plugin, it’s not picking the right directory, and as such it’s not finding any files to scan. This seems to be a common issue I’ve found references to online (i.e. but I cannot find a solution that works for me.

Snippet from config:


No matter what I set it doesn’t seem to pick the right directory. Is there a solution for this?