SonarQube 9.9.3 - EE - Multiple CI environments are detected: [AwsCodeBuild, Github Actions]

Hi Team,

I’m facing issue when I try to run sonarqube cli. I used GitHub for source code and AWS codebuild for CI.

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.scanner.ci.CiConfiguration]: Factory method 'provide' threw exception; nested exception is Multiple CI environments are detected: [AwsCodeBuild, Github Actions]. Please check environment variables or set property sonar.ci.autoconfig.disabled to true.
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
	... 62 more
Caused by: Multiple CI environments are detected: [AwsCodeBuild, Github Actions]. Please check environment variables or set property sonar.ci.autoconfig.disabled to true.
Error: Process completed with exit code 1

Hey there.`

The scanner is getting confused because these Environment variables

CODEBUILD_BUILD_ID CODEBUILD_START_TIME - Indicating an AWS Code Build environment

GITHUB_ACTION - Indicating a GitHub Actions Envrionment

Exist at the same time in your pipeline.

Either you’ll want to find out how to eliminate the GITHUB_ACTION variable, or do what the logs suggest and configure sonar.ci.autoconfig.disabled=true as an analysis parameter.

Thanks for your update, I have added 'analysis parameter to disable auto ci configuration and pipeline working fine now.