Closed Drimix20 closed 5 years ago
How do you run your full scans on the normal development branch? Why is the projectKey empty? Also take a look at the repository root settings in the readme.
1) Full scan is perfomed via org.sonarsource.scanner.maven maven plugin of version 3.4.1.1168. We run "mvn sonar:sonar" After scan project in sonar qube is updated and issues for all submodules are listed. Output of scan is: [INFO] Reactor Summary: [INFO] [INFO] Project : Parent Project ......................... SUCCESS [03:16 min] [INFO] Project : Modul1 .................................. SKIPPED [INFO] Project : Modul2 ................................. SKIPPED [INFO] Project : Modul3 ................................. SKIPPED
2) ProjectKey is not empty, I just provided the "placeholder". Project key is set to same value as is visible as project key for our project in sonar qube server.
3) I looked at the repository root settings in the readme but I didn't find any suspicious.
Is there a reason for using both sonar-scanner and the maven plugin? (I would recommend using the maven plugin). The module configurations between the executions probably differ.
Thanks for advices. The problem was that sonar-stash plugin used sonar-project.properties and complete analysis of project was performed by mvn module, so module configurations was different. I removed mvn module and use sonar-scanner for analysis of whole project and everythink is working fine.
Thanks for help.
You are welcome!
During analysis in pull request all issues from whole project want to be pushed as comments to BitBucket, we are not able to retrieve issues specific for that pull request. Can you please help us?
We are unable to retreive issues specific to current pull request during static code analysis. Sona runner publishes all project issues to overview comment in bitbucket. It seems that Stash-sonar plugin cannot handle multimodule maven project.
Project structure is following:
We run analysis from /workspace/project/
Versions: sonar-stash plugin 1.4.0 SonarQube 6.7.5 Findbugs 3.9.1 SonarJava 8.9.2