We are using Jenkins to run our SonarQube analysis on each of our repos. How can i specify each repo build as a sub-project of our overall team 'ProjectA'?
Currently i have tried this (when building the subProjectX repo):
SonarQube.Scanner.MSBuild.exe begin /k:ProjectA /n:\"Project A\" /d:ProjectA.sonar.modules=subProjectX,subProjectY /d:subProjectX.sonar.projectName=$subProjectX /d:$subProjectX.sonar.projectVersion=${majorVersion}.${minorVersion} /d:sonar.host.url=\"${SONAR_HOST_URL}\" /d:sonar.login=\"${SONAR_AUTH_TOKEN}\""
I've removed of the settings - unit test filenames etc for clarity.
I find that this just creates a ProjectA project in SonarQube with analysis data for subProjectX. Then when I run a similar command for subProjectY it simply overwrites the subProjectX data in SonarQube.
I was expecting SonarQube to show the aggregate data in the ProjectA analysis, and also show the data for the sub-projects separately. Is this even possible in SonarQube?