Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : Enterprise
- how is SonarQube deployed: zip, Docker, Helm : On premises
- what are you trying to achieve: We multi language (C++, C# ,TS) projects in single repository and we would like scan each projects separately and send scan result to different SonarQube projects. But we would like use single properties file at root.
For example:
app
├── path1
│ ├── src
│ └── test
├── path2
│ ├── src
│ └── test
mod
├── path1
│ ├── src
│ └── test
├── path2
│ ├── src
│ └── test
└── sonar-project.properties
sonar-project.properties:
#meta data…
sonar.host.url=<SONAR_HOST_URL>
sonar.verbose=true
sonar.modules=mod,app #Example of modules
#app…
app.sonar.projectBaseDir=./path1
app.sonar.projectKey=<SONAR_KEY>
#mod…
mod.sonar.projectBaseDir=./path2
mod.sonar.projectKey=<SONAR_KEY>
- what have you tried so far to achieve this Our Ask:
- Can use multiple project key in single sonar-project.propertie files
- Does sonarqube modules approach best fit our use case?
- Any better suggestion do you have details our use case
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!