We have upgraded SonarQube CE with 9.9.6 does GitLab plugin 4.1.0 support?

hello,

We have upgraded a SonarQube CE from 8.9.2 to 9.9.6, when users are running there pipeline they are getting failed with error1: Pipeline from Jenkins
“Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ClassRealm{gitlab}-com.talanlabs.sonar.plugins.gitlab.CommitPublishPostJob’: Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.talanlabs.sonar.plugins.gitlab.CommitPublishPostJob] from ClassLoader [ClassRealm{gitlab}]”

Error:2 in another pipeline from GitLab
[INFO] ------------------------------------------------------------------------

298528777 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar (default-cli) on project java-sandbox: Unable to load components interface org.sonar.api.batch.postjob.PostJob: Error creating bean with name ‘ClassRealm{gitlab}-com.talanlabs.sonar.plugins.gitlab.CommitPublishPostJob’: Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.talanlabs.sonar.plugins.gitlab.CommitPublishPostJob] from ClassLoader [ClassRealm{gitlab}]: org.sonar.api.batch.postjob.issue.PostJobIssue → [Help 1]

2986org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar (default-cli) on project java-sandbox: Unable to load components interface org.sonar.api.batch.postjob.PostJob

Please help us with is this Gitlab plugin is supported?
Thanks,
Dharma

Hi,
the plugin you are talking about is probably: GitHub - gabrie-allaigre/sonar-gitlab-plugin: Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files

Directly in the next line it states in its readme:
Only SonarQube < 7.7, because preview mode is removed

So no, the plugin is dead and isn’t even supposed to work with SQ 8.9.2. A small hint: Not SQ needs to support the plugin, but the plugin needs to support SQ.

If you are using some other Plugin or fork of the plugin, please do give more information about your setup or it is just guesswork for us.

Regards,
Patrick

1 Like