Hi @maxhov,
I had a similar problem running on Jenkins pipeline, and my solutions was Include the parameter “sonar.projectBaseDir” to act in the current directory (jenkins workspace).
Reference: Relationship between projectBaseDir, sources, and exclusions