Azure DevOps: SonarCloud Quality Gate - Waiting for result forever

ALM: Azure DevOps

CI: Azure DevOps Pipelines

Languages of the repository: C# .NET Framework 4.7.2

URL: N/A (Private Organization)

Error Observed:

Since last week of Semptember, our pipelines started to present the waiting Sonar Cloud / Quality Gate forever.

This problems has been affected our Clean as Code approach, since we started to accept Sonar Scans as optional and the team started to skip issues and others checks.

Just adding, we changed to option status check, from required to optional, because the team couldn`t approved none (e.g.new features).

So our last attempt is this chat, before escalating the subject internally.

Steps to reproduce:

  1. Create a PR
  2. Introduce a problem that is checked in our current quality gate
  3. Wait forever for result

Potential Workaround:

The current workaround was configuring the status check as optional. However, the team is not actively developing in the Clean as Code approach without this quality gate obligation.

Thanks!

Klaus

Hey there.

Have you configured a valid token at either the project-level Administration > General Settings > Pull Requests) or at the organiztion-level (Administration > Organization settings > Azure DevOps connectivity management)?

Often, this token expiring is the root cause.

Colin

Hi Colin,

Sometime ago, We did that, this time however, I have reset the Pull Request Token and retested it (regenerate in Azure DevOps). Doing it, It was fixed our quality gate status check.

Thank you!

1 Like

Glad it’s working for you again.

Quite likely, the PAT expired

  • Azure requires that a user log in every 30 days, or it automatically kills a PAT; this action may cause your related pipeline to fail. Here is an Azure Q&A on this topic.
1 Like