. The scan is successful on the level at the level of the pipeline, but the upload result isn’t what I am expected. When I switch to the automatic scan I can see huge difference.
Your first scan looks like a Pull Request analysis (only raising issues on changed code) whereas your second screenshot looks like the analysis of a branch (analyzing all code), be sure not to confuse the two!
Additionally, keep in mind the CircleCI Orb is really meant for projects that ould traditionally be analyzed with the SonarScanner CLI. If you’re using Java, you probably should go for the SonarScanner for Maven or SonarScanner for Gradle.
The Orb will perform a sonar-scanner command, which is not what we suggest using for Java/Gradle projects for an accurate analysis. We suggest using the SonarScanner for Gradle.