Hello,
currently our organization completed the SonarCloud and AzureDevOps integration. We are successfully seeing the quality gate result in the build. But I’m having issues adding the status check to PR’s.
I’m following the guide laid out here:
https://azuredevopslabs.com/labs/vstsextend/sonarcloud/#exercise-3-set-up-pull-request-integration
But I can’t find the SonarCloud/quality gate in the dropdown of “Add status policy” when trying to add a status check.
After reading the forum I found that it should be available after the first SonarCloud scan, so I’ve fully setup the main branch scanning (not just the integration branch) to be sure that at least one scan is done on main branch properly. But the selection still doesn’t appear.
I’ve tried to just add it to the status policy, and that seems to work, the status check appears in the PR but is in a constant “waiting” status.
Also, from the setup perspective: AzureDevOps PAT has been added to SonarCloud and SonarCloud service has been added to AzureDevOps.
What other actions could I take to mitigate this?