I have an Angular project which is successfully integrated with the SonarQube i.e. all relevant information about code metrics for both branch analysis and pull requests is problemless displayed on the SonarQube server. Additionally I use the plugin for Bitbucket, so the results from the analysis can be easily presented there.
- I use the following versions:
SonarQube: v9.5
Scanner: sonar-scanner-4.5.0.2216-windows
Plugin: SonarQube-Jenkins Plugin v2.14 - The problem is that sometimes pieces of information are missing, more concrete either the coverage or the duplications. Below I have two screeshots as an example:
Picture 1: Analysis on the Bitbucket page from the plugin
Picture 2: Analysis on the SonarQube page
As you can see the first picture presents the analysis metrics in Bitbucket and the coverage number is 0% whereas the second picture shows the results for the same pull request, but the coverage number is 58.23%.
So my question is, what is the reason for this? (I can provide the sonar-project.properties file as well, but you see that the analysis results are displayed on the SonarQube server correclty)