I am using PR Decoration with connection to a On-Premise Azure Devops installation.
When I create a PR with issues, the PR build runs and analyses SQ. The analysis finds this issues (in webinterface) and Azure server sends mail to the PR creator (me) but does not show the issues in the PR. Why?
Mailbox:
PR view:
Addition about my setup
Version 9.9.1
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
INFO: Linux 6.2.0-31-generic amd64
INFO: CFamily plugin version: 6.41.0.60884
I am looking for the comments at the code. (Like when my collegue reviews it)
I get the mails (Like when my collegue reviews it), but the comments are not there.
What is the “analysis summary on the PR”? The log in the build? Yes, i am getting that:
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarqube.xxxxxx
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarqube.xxxxxx
INFO: Analysis total time: 13.127 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 14.895s
INFO: Final Memory: 32M/124M
INFO: ------------------------------------------------------------------------
Because you configured this project manually, the data to enable pull request decoration in general is not in place. Take a look at Project Settings → DevOps Platform Integration.
I have some additional info that might be of interest:
We analyse multiple projects in the same PR (with the same sonar.pullrequest.*) settings. Other projects analyze different files (no overlaps). Maybe other projects overwrite something and delete those issues again (even though it analyses different files).
we have multiple sonar projects, that are analyzed in the same pipelines from the same git-repo. The reason is that we have different rulesets for different code parts (e.g. test code vs productive code)
We do not have monorepo setting active (screenshots), because this affects “Reporting quality gate status” only and we somewhat ignore this feature. We only need the comments in the PR, which will block completion of the PR anyways.