Not getting proper analysis for Pull Requests on Sonarcloud

Hello,

In my company we have been using SonaCloud for a while. Before we were running the scanning process through the gitlab CI but recently we switched to Jenkins. I was trying to reconfigure a project to run through Jenkins but it’s not working quite right.

What is the problem?
I cannot get a coverage report for PRs. On top of that I get the following warning:

Could not find ref ‘main’ in refs/heads, refs/remotes/upstream or refs/remotes/origin. You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis.

I cannot find any documentation or related mentions for SonarCloud on the Forum. How exactly do I handle this warning?

Hi,

These threads are about SonarQube, not SonarCloud, but may still be relevant:

 
HTH,
Ann

@ganncamp I had a look in the suggested threads before and I had once again but they were not really helpful for my situation.

Hi,

Can you provide your full job log, please?

 
Ann