SonarCloud Quality Gate stuck on Waiting for PR (PAT has been updated)

Template for a good new topic, formatted with Markdown:

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Been working for over a year
  • Have refreshed the PAT token (twice, by different colleagues in case a mistake was made)
  • C# repo
  • Private Sonar Cloud Project
    • No errors produced or warnings on the PR from Sonar
  • No other workaround other than to disable the Quality gate Status Policy in Azure DevOps

I’ve sent you a private message for details.

Hello,
We have the same kind of issue with Azure DevOps.

  • The pipeline was working few days ago

  • No change were made in the pipeline (yaml file)

  • When the pipeline is triggered manually from the Azure DevOps pipelines

  • When the pipeline is triggered from a PR to provide use the quality gate, we have that issue:

    ##[error]ERROR: Error during SonarScanner execution
    ERROR: Error during SonarScanner execution
    ##[error]ERROR: Project not found. Please check the �sonar.projectKey� and �sonar.organization� properties, the �SONAR_TOKEN� environment variable, or contact the project administrator
    ERROR: Project not found. Please check the �sonar.projectKey� and �sonar.organization� properties, the �SONAR_TOKEN� environment variable, or contact the project administrator
    ##[error]ERROR:
    ERROR:
    ##[error]The SonarScanner did not complete successfully
    The SonarScanner did not complete successfully
    ##[error]19:47:00.105 Post-processing failed. Exit code: 1
    19:47:00.105 Post-processing failed. Exit code: 1
    ##[error]The process ‘D:\a_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.26.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1
    Finishing: SonarCloudAnalyze