Hello Team,
We are facing an issue when we run below commands in code pipeline.
17:58:39.118 ERROR: Error during SonarQube Scanner execution
960 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)
[Container] 2023/05/28 17:58:39 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: sonar-scanner -Dsonar.login=$SONAR_LOGIN -X. Reason: exit status 1
Commands which we are using in the code pipeline:-
- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492-linux.zip
#- echo Tryig wget sonarqube - done
#- echo unzip the sonarfile
- unzip sonar-scanner-cli-3.3.0.1492-linux.zip
#- echo Tryig wget sonarqube done
- export PATH=$PATH:./sonar-scanner-3.3.0.1492-linux/bin/ - sonar-scanner -Dsonar.login=$SONAR_LOGIN -X