We have multiple Git repositories in Azure DevOps, each configured with a quality gate status check for pull requests.
All repositories in our project are created and configured using Terraform, ensuring consistent behavior across them.
However, for the past three days, there has been one repository where the quality gate status is not being reported in pull requests. The check remains stuck at “Waiting.”
We verified the Azure DevOps PAT and it is still valid. Additionally, other repositories are successfully receiving the quality gate status.
We also recreated the status check using Terraform, but the issue persists.
On the SonarCloud UI, I can see that the pull request scan is completed, and the quality gate is fulfilled. The pipeline task also reports this. Despite this, the status check result is not being received in the pull request.
I reviewed the background task logs but could not find any issues there.
What could be causing this problem?
Here are some logs of the publish quality gate pipeline task with the timestamps and task/analysis id:
2025-01-22T08:14:31.2654853Z ##[debug][DEBUG] SonarQube Cloud: Waiting for task 'AZSNE766inbjIry0rkyr' to complete.
2025-01-22T08:14:31.2655543Z ##[debug][DEBUG] SonarQube Cloud: API GET: '/api/ce/task' with full URL "https://sonarcloud.io/api/ce/task" and query "{"id":"AZSNE766inbjIry0rkyr","additionalFields":"warnings"}"
2025-01-22T08:14:31.3228342Z ##[debug][DEBUG] SonarQube Cloud: Task status:SUCCESS
2025-01-22T08:14:31.3228997Z [INFO] SonarQube Cloud: Task AZSNE766inbjIry0rkyr completed
2025-01-22T08:14:31.3229612Z ##[debug][DEBUG] SonarQube Cloud: Retrieve Analysis id 'AZSNE8Bvf3CkIo473p5K.'
2025-01-22T08:14:31.3230326Z ##[debug][DEBUG] SonarQube Cloud: API GET: '/api/qualitygates/project_status' with full URL "https://sonarcloud.io/api/qualitygates/project_status" and query "{"analysisId":"AZSNE8Bvf3CkIo473p5K"}"
...
2025-01-22T08:14:31.6543117Z ##[debug][DEBUG] SonarQube Cloud: Generate analysis report.
2025-01-22T08:14:33.6007211Z ##[debug][DEBUG] SonarQube Cloud: Number of analyses in this build: 1
2025-01-22T08:14:33.6008833Z [INFO] SonarQube Cloud: Overall Quality Gate status: ok
2025-01-22T08:14:33.6019066Z ##[debug][DEBUG] SonarQube Cloud: Adding build property: [{"op":0,"path":"/sonarglobalqualitygate","value":"ok"}]
Best regards