Sonarqube displays “failed” on the branch and “passed” for the MR between this branch and another
Welcome to the community!
It’s not clear what your question is.
Hi G Ann,
I apologize for this unclear message, here are more details:
We actually use sonarqube developer edition 9.9 LTS.
And we currently implemented “MR decoration” to display the result of the code analysis on Gitlab. So when a developer pushes his code onto a branch and creates a merge request to merge his code into another branch, the two branches are analyzed and sonar displays the list of bugs in the sonar web interface (figure 1) but at decoration level, nothing is displayed other than “the quality gate passed” (figure 2).
Note: we use Jenkins as a CI tool and multibranch pipeline.
Your first two screenshots are of branches, not merge requests. I know because MRs don’t get an ‘Overall’ tab, and because conditions on Overall code aren’t applied to MRs.
Both branches are failing their Quality Gates because of conditions in Overall code which, as I said, aren’t applied in MRs. So… I’m not sure what the expectation is here.