- SonarQube Enterprise, Azure Devops, GitHub
- Trying to enable PR detection and decoration
According to the documentation here, SonarQube can now automatically detect branches and Pull Requests. So far, the branch detection works just fine, but not the PR detection.
We are using Azure Pipelines to run our builds, and the
SonarQubePublish@4 tasks to communicate with our SonarQube server. The branch detection works perfectly: each new branch that builds creates a corresponding branch in SonarQube, and the Quality Gates work to pass or fail the code on the new branch.
However, even after a Pull Request is created in GitHub, and the pipeline is restarted, SonarQube does not detect the PR and perform the necessary decoration. If we look on the
Project Settings -> Branches & Pull Requests page, the Pull Requests tab is always empty.
So far we have tried visiting the
Administration -> ALM Integrations page, and added configurations for GitHub and Azure Devops. On each project we have visited
Project Settings -> General Settings page and filled in the configuration of
Pull Request Decoration. What is the missing piece to the puzzle?