SCM support for multiple working trees

environment

  • using: SonarQube server 7.6.0 Enterprise edition, SonarQube Scanner 4.0.0.1744, Git integration plugin 1.8 (build 1574)
  • trying to get blame to work for GIT with scan over multiple working trees

We have a project which is split to 4 git repositories (single BitBucket project). Jenkins pipeline makes those 4 clones to 4 directories, then the sonar-project.properties file is copied to root directory and scanner is started. Scan completes fine but it appears that SCM blame works only if scan is executed over single worktree so we are missing the blame info on server.

Previously we had one repo with 4 subdirectories and that worked fine, including the blame. Now we have 4 repositories (matching the previous subdirectories) and blame info disappeared.

Is there anything I can do to get this working? Is this bug report? :slight_smile:

Hi,

Yes, it’s known that your situation isn’t supported. You have multiple choices:

  • live with no blame info :-/
  • revert to one repo :-/
  • analyze each repo separately & maybe stitch back together with an Application($)

 
HTH,
Ann

hi Ann,
I will go and split it to multiple scans/projects and then stitch it all back as Application on server

thanks for prompt reply!
Tono