I’m trying to set Sonarcloud pull request decoration with Azure devops. I have set branch policies to the azure repos pull request target branch and integrated the ADO PAT(full access) in sonar cloud.
Pipeline is getting triggered whenever PR is created and sonar cloud analysis is running. The quality gate is failed. But i am not getting the failed result as comments in the Azure devops pull request. It keeps in the ‘waiting’ state.
From ADO side, everything is fine. Seems the issue is with sonarcloud sending result back to the ADO PR.
I don’t know if this is same situation but we had to make sure we set the Provider and PAT on each project as well. Each project doesn’t use use the same as the organization apparently.
Select Project => Administration => General Settings then select “Pull Requests” and you have to set the provider and PAT there.