SonarQube Developer Edition Version 8.1 (build 31237)
GitLab Community Edition 12.7.5
BuildWrapper version 6.5 (macosx-x86)
SonarQube Scanner 220.127.116.113
Java 11.0.3 AdoptOpenJDK (64-bit)
Mac OS X 10.14.6 x86_64
We configured the GitLab Pull Request Decoration as described at https://docs.sonarqube.org/latest/analysis/pull-request/
- Created user in GitLab with Reporter permissions and created Access Token
- Added GitLab config at Administration > Configuration > General Settings > Pull Request Decoration > GitLab tab
- Set ALM for project at Administration > General Settings > Pull Request Decoration
We run our scan in GitLab Runner with the following commands
build-wrapper-macosx-x86 --out-dir Builds/SonarQubeOutput bundle exec fastlane standard_build_adhoc
sonar-scanner-macosx/bin/sonar-scanner -Dsonar.pullrequest.key=$CI_MERGE_REQUEST_ID -Dsonar.pullrequest.branch=$CI_COMMIT_REF_NAME -Dsonar.pullrequest.base=master
The scan is successful and a pull request is added to SonarQube.
But the Pull Request Decoration to GitLab is not working. The Pull Request contains an info at the top saying Last analysis had 1 warning and clicking on this shows the following error message:
Pull request decoration did not happen. Github Application configuration is incomplete. Contact your SonarQube administrator to fix it.
As we are using GitLab and only GitLab is configured this message does not make any sence as we are not using Github.
Any advice on how to solve this issue?
Regards Matthias Hager