ERROR: Error during SonarScanner execution
java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
We are using SonarQube community edition
Sonar Scanner: 4.8.0.2856
Java 17
Working on nodejs project.
Pipeline script:
stage(‘SonarQube Analysis’) {
steps{
nodejs(nodeJSInstallationName:‘Node7.9’){
sh ‘npm install’
script{
scannerHome = tool ‘SonarQubeScanner’}
withSonarQubeEnv(‘SonarQube’) {
sh “${scannerHome}/bin/sonar-scanner”
}
}
}
}