I can't get the issues to show in the diff view.
I have a single Git repo which hold several modules. the GAV is something like:
com.mycompany.project
com.mycompany.project.module1
com.mycompany.project.module1.submodule1
When running a sonar analysis from the repo root sonarqube assigns the following project keys:
com.mycompany.project:branch-name
com.mycompany.project:module1:branch-name
com.mycompany.project.module1:submodule1:branch-name
The add-on is configured with the project key : com.mycompany:project
However it fails to show information in the diff pane. I tracked the issue down to the call that Sonar for Stash makes to sonarqube:
The call Sonar for Stash makes:
https://mysonar.com/sonar/api/issues/search?resolved=false&severities=INFO,MINOR,MAJOR,CRITICAL,BLOCKER&components=com.mycompany:project:branchname:module1/submodule1/src/main/java/com/mycompany/path/to/file.java
The correct url for the call:
https://mysonar.com/sonar/api/issues/search?resolved=false&severities=INFO,MINOR,MAJOR,CRITICAL,BLOCKER&components=com.mycompany.project.module1:submodule1:branchname:src/main/java/com/mycompany/path/to/file.java
Have I misconfigured something or does the add-on simply not support multi-module GAV as parsed by sonarqube?
Hi,
We've just released version 1.2.0 of Sonar for Stash yesterday which now includes multi-module support. Could you please upgrade and try again? You have to tick the checkbox "Multi-module support" in the repository settings of Sonar for Stash and specify the working sub-directory setting in the same way as you probably have done in Sonar for Bamboo.
Hope that helps.
Kind regards,
Michael from Mibex Software
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.