SonarQube fails to get git blame information from Jenkins project
<p>I configured a Jenkins Main Project <code>P</code> to manage two git repository <code>A</code> and <code>B</code>. This main project <code>P</code> only updates git sources and calls sonar analysis on sources from his workspace.</p>

<p>Here's my tree folder.</p>

<pre><code>{Jenkins Install Path} \ workspace \ P 
                                     |-- A 
                                         |-- .git/
                                         |-- all projects A files
                                     |-- B
                                         |-- .git/
                                         |-- all projects B files
</code></pre>

<p>When Jenkins runs sonar analysis for <code>P</code>, I got the following error</p>

<pre><code>SCM provider for this project is: git
2664 files to be analyzed
0/2664 files analyzed
Missing blame information for the following files:
(all files)
</code></pre>

<p>The error is logical because SonarQube is looking for a <code>.git</code> folder under <code>{Jenkins Install Path} \ workspace \ P</code>. It doesn't exist.</p>

<p>I looked around the internet to find a solution but I didn't find an answer. I am using SonarQube 5.5 installed on windows.</p>

<p>Do you have some idea to make SonarQube working with my configuration ?</p>

<p>This case is different than <a href="https://stackoverflow.com/questions/37432290">Sonarqube: Missing blame information for the following files</a> because the root cause is I am using two git folder fetch by a single SonarQube analysis. </p>

<p><strong>Sources I visited and read several times</strong></p>

<p><a href="http://docs.sonarqube.org/display/PLUG/Git+Plugin" rel="nofollow noreferrer">SonarQube Git Plugin</a></p>

<p><a href="https://stackoverflow.com/questions/37432290/sonarqube-missing-blame-information-for-the-following-files">Seems similar but different issue</a> </p>

<p><a href="https://stackoverflow.com/questions/28295261/how-can-i-use-git-as-the-scm-provider-in-sonarqube-5-0-using-sonar-runner/">Global SCM error in SonarQube</a></p>