SonarCloud "You are running CI analysis while Automatic Analysis is enabled" in CI
SonarCloud can analyze a project automatically or from your CI, but not both. When you push a CI scan while Automatic Analysis is still on, the server rejects the CI analysis to avoid conflicting results.
What this error means
The scanner fails with "You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other." The CI upload is refused.
ERROR: You are running CI analysis while Automatic Analysis is enabled. Please consider
disabling one or the other.Common causes
Automatic Analysis is still enabled on SonarCloud
The project was set up with Automatic Analysis, and now a CI-based scanner is also running, so both modes collide.
A migration to CI analysis left the old mode on
You added a CI scan step but never turned off Automatic Analysis in the project administration.
How to fix it
Disable Automatic Analysis for the project
- Open the project in SonarCloud and go to Administration > Analysis Method.
- Turn off Automatic Analysis so CI-based analysis is the single source.
- Re-run the CI scan.
Or remove the CI scan and keep Automatic Analysis
If Automatic Analysis meets your needs, delete the CI scanner step instead so only one mode runs.
How to prevent it
- Choose one analysis method per project and stick to it.
- When adding CI analysis, disable Automatic Analysis in the same change.
- Document the chosen analysis method for the project.