Error with sonar scan in jenkins

I created a pipe line in jekins, while i have trigred the job i am getting below error. Any one help to resolve that.

13:24:09.385 ERROR: Error during SonarQube Scanner execution
java.lang.NoSuchMethodError: 'org.sonar.batch.bootstrapper.Batch$Builder org.sonar.batch.bootstrapper.Batch$Builder.setBootstrapProperties(java.util.Map)'
	at org.sonarsource.scanner.api.internal.batch.DefaultBatchFactory.createBatch(
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.start(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(
	at jdk.proxy1/jdk.proxy1.$Proxy0.start(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doStart(
	at org.sonarsource.scanner.api.EmbeddedScanner.start(
	at org.sonarsource.scanner.cli.Main.execute(
	at org.sonarsource.scanner.cli.Main.main(
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?
ERROR: SonarQube scanner exited with non-zero code: 1
Notifying upstream projects of job completion
Finished: FAILURE```


Welcome to the community!

Can you provide the full analysis log, starting from the analysis command itself?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.



this indicates a compatibility issue between the versions of SonarQube scanner and the SonarQube server.

What are your versions of
Sonar Jenkins plugin
Sonar CLI scanner | Sonar maven plugin if using maven
Java used for the Sonarqube analysis


1 Like