I have problem with Jenkins – Execute SonarQube Scanner Build Option.
Our Environment details as follows:
- Jenkins Master Server OS: Ubuntu-12.04 LTS-64 Bit.
- Master Server Jenkins Version: 2.46.2
- SonarQube Scanner Plugin for Jenkins -Version - 2.6.1
- Build Type: Master and Slave Based.
- Slave Machine: Ubuntu-14.04-LTS (64-Bit)
- SonarQube Server Version - 5.1 (64-Bit)
- Sonar-runner version 2.4
- Slave Machine Java Version – 1.8
Problem Description:- I have defined the sonar.project.properties information under the “Analysis properties” category in Jenkins Master Server itself,When i tried to execute the same through it fails with below errors.java.lang.UnsupportedClassVersionError:
hudson/plugins/sonar/SonarRunnerInstallation$1 : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
Caused: java.lang.ClassFormatError: Failed to load hudson.plugins.sonar.SonarRunnerInstallation$1
Kindly help me to fix the same.