Jenkins SonarQube-Analysis with new merge request


i am trying to develop a pipeline with Jenkins.
The plan:

  1. In a self hosted Gitlab a merge request is created.
  2. Jenkins starts automatically sonar scanner
  3. SonarQube reads the result and send it to gitlab
  4. gitlab shows the result.

Has someone a example with similar requirements?
How should i start? Currently we have a SonarQube-Pipeline, which starts every day at the jenkins and scanns a specific branch.


Welcome to the community!

I think the docs on Jenkins analysis may help.