Error when going from version 8.9 to 9.9

When going from Sonarqube version 8.9 to 9.9 and running a sonar task from gradle, I started getting the following error:

Execution failed for task ‘:sonar’. ‘org.sonar.api.batch.AnalysisMode org.sonar.api.batch.postjob.PostJobContext.analysisMode()’

I included the --stacktrace option, and see the following message:

Caused by: java.lang.NoSuchMethodError: ‘org.sonar.api.batch.AnalysisMode org.sonar.api.batch.postjob.PostJobContext.analysisMode()’

Does anyone know how to resolve this?

Hi,

Welcome to the community and congrats on your upgrade!

Can you share the full analysis log?

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.

 
Ann