SonarCloud analysis stuck in 'wait' state in a PR in Azure DevOps

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)

    • Azure DevOps
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI)

    • Azure DevOps for CI
  • Scanner command used when applicable

    • Integrated SonarCloud as a service check (branch policy) for Pull Request Analysis
  • Languages of the repository

    • A Laravel Mix application (PHP + Javascript(Vue))
  • Error observed

    • SonarCloud quality gate is added as a branch policy. When the pull request is queued, it stays in the wait state. It never resolves. I cannot see the results inside SonarCloud as well. I read multiple community topics.
    • I have added my PAT under the Pull Request settings for my project as well
    • As stated here I also checked if my user was a Stakeholder and it is not. My user is a Basic + Test plan.
    • As stated here I executed a curl command with my PAT and it seems to work just fine

What are the next steps I can take to make sure that the Pull Request decoration works.

Hey there.

Is it possible there is some Azure Active Directory Conditional Access Policy Validation only permitting access from certain IP ranges / registered machines? The actual pull request decoration is coming from SonarCloud itself, rather than, for example, your build agents.

Hey Colin,

I checked the Azure Directory Conditional Access Policies and we do not have any specific ones configured.

Is there anything else I can check?

Just to let you know, we have SonarCloud integrated inside our build pipelines and that works just fine. We are having an issue configuring it with our Pull Requests and get the appropriate Pull Request Decoration.

I will reach out to you for a few extra pieces of information.