Team,
I’m facing the following issue for a few projects (the rest of the projects running fine). Kindly help in fixing.
2022/02/04 13:01:00 Running Sonar
[Pipeline] withSonarQubeEnv
Injecting SonarQube environment variables using the configuration: sonar
[Pipeline] {
[Pipeline] isUnix
[Pipeline] sh
- set +x
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
[Pipeline] }
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeed?
[Pipeline] // withSonarQubeEnv
[Pipeline] }
[Pipeline] // gitlabCommitStatus
[Pipeline] }
[Pipeline] // stage
[Pipeline] logstash
[Pipeline] {
[Pipeline] echo
[logstash-plugin]: Unable to instantiate LogstashIndexerDao with current configuration.
STAGE_ERROR: sonar
[Pipeline] }
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Ans. SONAR 8.9.6 LTS (Communitry version) - what are you trying to achieve
Ans. Sonary analysis. - what have you tried so far to achieve this
Ans : Tried Sonar to point to JDK 11.0.13
Please help in fixing. Thank you.