code with sonarqube isntance use jenkins but error this is the pipeline:
sh '''
${scannerHome}/bin/sonar-scanner \
-Dsonar.projectKey=go-crud \
-Dsonar.projectName=go-crud \
-Dsonar.projectVersion=1.0 \
-Dsonar.sources=. \
-Dsonar.sonar.exclusions=**/*_test.go,**/vendor/** \
-Dsonar.sonar.tests=. \
-Dsonar.sonar.test.inclusions=**/*_test.go \
-Dsonar.sonar.test.exclusions=**/vendor/** \
-Dsonar.go.coverage.reportPaths=./coverage.out \
'''
=================
and here the errors i got:
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Unable to load component class org.sonar.plugins.javascript.JavaScriptSensor
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:66)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @736309a9
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @736309a9
can you please explain the the error?
what have you googled so far?
It's solved, updating java version and install sonarqube from docker for aws instance and it's work
Обсуждают сегодня