I am trying to generate code coverage report and get that report published to SonarCloud UI. Below is the command I am using:
sonar-scanner -X
-Dsonar.organization=<my_organization_name>
-Dsonar.projectKey=<project_key>
-Dsonar.sources=/home/circleci
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.login=$SONAR_TOKEN
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
I am seeing below error when I execute the command:
++++++++++++++++++++++++++++++++++++++++++
10:46:28.166 ERROR: Error during SonarScanner execution
You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other.
++++++++++++++++++++++++++++++++++++++++++
I understand this is happening because of automatic analysis being turned ON & also because I am trying to run CI analysis using the command.
When I am trying to disable this from SonarCloud UI, I am not seeing this option (Automatic Analysis On/Off) under Project Settings in my SonarCloud UI.