I’m trying to upload my test reports to sonarcloud. I did go through these two links:
-[Coverage & Test Data] Importing JaCoCo coverage report in XML format
-How to configure/upload coverage reports to SonarCloud.io?
But when I run this command “./gradlew jacocoTestReport sonarqube” I get the following error:
“You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other.”
Now I know why I’m getting this error and that is because we currently run sonarcloud on every PR push on github. Now as a team we like the sonarcloud analysis
But as you can see I’m missing coverage information. So my question is if I disable sonarcloud automatic analysis and run sonarqube command would we see the results of the code coverage along with the rest of analysis on the PR in github (just like the screenshot but with coverage data)? If not then how can I upload my coverage data to sonarcloud? Because from my understanding is that sonarqube is different than sonarcloud. qube we need to host it and obviously cloud is hosted by sonar so how can sonarqube command allow me to upload to sonarcloud?