Languages of the repository: Java / Javascript (across ~30 repos/projects)
Private Azure Devops organization
Using the official Azure Devops integrations (SonarCloudPrepare, Maven integration (Java only), SonarCloudPublish etc)
We’ve been using Sonarcloud for a few months but the status checks for PRs have recently stopped being set. They are visible in the dropdown when configuring the branch policy and are displayed on the right hand side of the PR but are grey (rather than green or red).
Interestingly, the actual analyses are triggered in Sonarcloud and the reports are linked to the build pipelines. The issue is just with the PR decoration and status checks. We have a Conditional Access Policy on Azure Devops which may be a factor.
What is interesting to note on the above, is that if I edit the Sonar policy I have two items in the drop-down: “cards-offer/codecoverage” and “SonarCloud/quality gate”. Not sure why there are two and which one works? Any idea?
With regards to the PAT, it has Code Read/Write permissions. On that note, is it required to go into every project in Sonarcloud and add the PAT in the General Settings? (we have 30 repos and growing by about 5 a month)
I didn’t do anything on my side, but i’m glad that it is working again, let’s wait for some hours / day to see if it doens’t occur again anyway.
code coverage is a newest feature added in a previous sprint on Azure DevOps’s side, and it appears whenever you haven’t heard / set up about it in the Pull Request, but it has nothing to do with SonarCloud / SonarQube (yet)
I tried multiple setting on my side and i wasn’t able to reproduce this issue.
And for you last question, yes this is a project-wide setting for now, but we will discuss about your suggestion.