I am encountering difficulties in integrating Pull Request (PR) annotation within Azure DevOps environment. Despite required configuration, the “SonarQube/Quality Gate” status check is not appearing as expected after triggering the pipeline on a pull request.
Here’s a summary of the steps we have taken:
- General Integration:
We have successfully established the general integration between Azure DevOps and SonarQube, with SonarQube added to the service connections in Azure DevOps. - Pipeline Configuration:
- We have incorporated the necessary SonarTasks (SonarQubePrepare@6, SonarQubeAnalyze@6, SonarQubePublish@6) into our pipeline.
- The pipeline trigger is set to “pr”.
- The pipeline has been added to the “Branch Policies > Build Validation” section.
Even after executing the pipeline (with the PR trigger) upon raising a pull request, the anticipated “SonarQube/Quality Gate” status check remains absent.