which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
what are you trying to achieve
what have you tried so far to achieve this
I get the following warning on one of our repository.
‘Clone with a reference was detected. Some files will miss SCM information. This will affect features like auto-assignment of issues. Please configure your build to not clone using a local reference.’
I use Bamboo to build the software and not sure why I am getting such warning on this repo (Android Kotlin repo) but not on anything else (iOS - swift and Java repo don’t have such warning).
I can understand that it is more complicated for SonarQube plugin to manage this kind of feature/architecture ; but seems a good practice for a correct health of CI tool.
So I’m a little speechless on “which has the true” . Perhaps the beginning of a troll thread .
Looks like the code checkout done with Bamboo is done using a reference to a local git repository (to optimize the cloning operation and not download from the remote repository). This kind of clones are currently not supported by SonarQube.
See if you can change the way Bamboo does the code checkout.
We happened to encounter the same analysis warning after upgrading to 7.9.2 LTS.
Clone with a reference was detected. Some files will miss SCM information. This will affect features like auto-assignment of issues. Please configure your build to not clone using a local reference.
This was not an issue with 7.6, which we upgraded from. So this is definitely something that changed in 7.9.2.
Unfortunately, it’s not that the Jira issue is private; the project is gone. I guess this got rolled into the main SonarQube project, but my searches aren’t finding anything about “reference clone”.
If you’re experiencing symptoms, feel free to create a new thread.