Hi,
Description:
We have a SonarQube paid plan, we enabled a policy into our AzureDevOps branch that waits for the status check of “SonarCloud/quality gate”, so the PR cannot be merged until this status has green state.
Last week the “Run Code Analysis” step into our AzureDevOps pipeline started to fail, after re-setting our organizational Personal Access Token from AzureDevOps into Sonar (it was shown as “invalid”) the run code analysis got fixed and running fine and we can see the PR’s into SonarQube web, but, the status check for “SonarCloud/quality gate” into our AzureDevops PR’s never get’s updated.
This is an example of a today’s run that the sonar status didn’t get updated, taskID: AZaiIlHo-15keZjti9nh
Note: we don’t have any PAT at project level, just organizational one.
This is a blocker to our automated process.
Steps to reproduce:
- Create a PR into ADO
- The sonar pipeline get’s triggered and it run code analysis
- Build validation status of Sonar Pipeline get’s updated into PR
- Status check for “SonarCloud/quality gate” should getupdated into PR <— issue (Not being updated)
Expected:
After the Sonar pipeline finishes, it should report build validation status and status check for “SonarCloud/quality gate” into AzureDevOps Pull request.
Actual:
After the Sonar pipeline finishes, just the build validation status is getting reported to the pull request, status check for “SonarCloud/quality gate” is not being reported