Azure Devops pull request is not being decorated by SonarCloud after succesful analysis

Summary: the quality gate has passed, but the PR has not been decorated.

  • situation: SonarCloud Quality Gate analysis invoked from Azure Devops build pipeline, and passed.
  • expected result: PR is decorated with Quality Gate result
  • actual result: no decoration on the PR
  • error observed: none, no warning shown on Sonar Cloud report

Links:

Logs from pipeline tasks:
pipeline logs.txt (15.4 KB)

Other relevant info:

  • other PRs (previous and subsequent) have been decorated as normal
  • I have tried with a newly-generated security token (in case an authentication failure had caused the previous failure); this had no effect i.e. the subsequent code analysis also passed, but failed to decorate the PR.

Hi,

Could you please tell us your PR configuration ?
Do you have a branch policy with an automatic build triggered once a change is pushed to the PR branch ?
If yes, Is there any quality gate status on the PR itself ?
Do you have any issue that have to be decorated on that specific PR ?

I cannot see your PR / CI build logs as they are private.

Thank you !
Mickaël

Hi Mickaël; thanks for the quick response. In answer to your questions:

  1. Yes, there is a branch policy with an automatic build triggered once a change is pushed to the PR branch; see screenshot 002 attached
  2. No, the PR shows no quality gate status, only the waiting icon; see screenshot 003 attached.
  3. I don’t understand what you mean by “Do you have any issue that have to be decorated on that specific PR ?” - if you are asking whether the PR is allowed to complete without the decoration, no it is not. So this failure is blocking the PR from being completed.
  4. I have attached the relevant CI build logs (of the Sonar tasks) in my previous post, but can also provide the full CI build logs if there is a way to do so securely.

Screenshot 3: