Gitlab Application configuration for pull request decoration is incomplete

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    ** SonarQube Developer Edition Version 8.9.1 (build 44547)
    ** Gitlab 13.12.8
    ** Gitlab Branch Source Plugin 1.5.9
  • what are you trying to achieve
    ** configure pull request decoration for Gitlab
  • what have you tried so far to achieve this
    I have set up ALM integration for Gitlab as mentioned in here GitLab Integration | SonarQube Docs
    When I click “Check configuration” it shows me green tick for “Merge Request Decoration” and “Import repositories from your ALM”.

For the project I have set up settings for pull request decoration (Configuration and project ID). When I run a Jenkins job to build and scan the code of a MR, it is successful, but analysis results are not shown in Gitlab MR view.
I see a warning in Sonarqube for the analysis of the MR: “Merge Request decoration did not happen. GitLab Application configuration is incomplete. Contact your SonarQube administrator to fix it.”

How can I find out what part of the configuration is missing for the configuration to be complete?

Hi, that means that you would benefit from analysis parameters auto-detection in a Gitlab CI pipeline. Have you tried to provide the pull request parameters manually to see if that triggers correctly the MR decoration?

We were in the exact same situation (same error message and green tick) but in the log we saw more information:

GitLab's project ID from the scanner ('93') is overridden by the settings ('some-project')
Project id is expected to be an int. Was: some-project

So the problem was in the config:

After having changed it to the id (93) to match the ID in Gitlab:

Screenshot 2022-11-23 at 10.39.07

We see the decoration in GitLab as a comment added to the MR:

1 Like