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.