Search code examples
azure-devopssonarqubeazure-pipelinessonarcloud

Sonarcloud gate in Azure Devops pull request stuck in waiting status


We have a Sonarcloud quality gate in the Pull request policy in Azure Devops. Mostly it works but sometimes it get's stuck. We added an update to the PR but is it still at status Waiting in Azure Devops. When I check Sonarcloud for this branch it says Passed.

How can I restart the gate or can I debug Sonarcloud if that e.g. has taken longer that what Azure Devops is waiting?


Solution

  • The reason for this was that the Personal Access Token used had expired, or at least creating a new one fixed this.

    So go to https://sonarcloud.io/project/settings?category=pull_request&id=*projectkey* and change the Personal access token and queue the build.