Skip to content
Latchkey

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.

sonar-scanner
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

  1. Open the project in SonarCloud and go to Administration > Analysis Method.
  2. Turn off Automatic Analysis so CI-based analysis is the single source.
  3. 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.

Frequently asked questions

What causes ""CI analysis while Automatic Analysis is enabled""?
The project was set up with Automatic Analysis, and now a CI-based scanner is also running, so both modes collide.
How do I fix "CI analysis while Automatic Analysis is enabled"?
Disable Automatic Analysis for the project

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card