我正在使用Hudson 1.323并尝试使用Sonar 1.4和2.0.1插件,但在这两种情况下都获得了以下异常。谁能建议如何整合它?
FATAL:
hudson.model.Hudson.getDescriptorOrDie(Ljava/lang/Class;)Lhudson/model/Descriptor;
java.lang.NoSuchMethodError:
hudson.model.Hudson.getDescriptorOrDie(Ljava/lang/Class;)Lhudson/model/Descriptor;
at hudson.plugins.sonar.utils.SonarMaven.getDescriptor(SonarMaven.java:99)
at hudson.tasks.Maven.getMaven(Maven.java:153)
at hudson.tasks.Maven.perform(Maven.java:233)
at hudson.plugins.sonar.utils.SonarMaven.executeMaven(SonarMaven.java:149)
at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:331)
at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:292)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454)
at hudson.model.Build$RunnerImpl.post2(Build.java:146)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438)
at hudson.model.Run.run(Run.java:1140)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:93)
at hudson.model.Executor.run(Executor.java:122)
答案 0 :(得分:0)
您使用的是SonarQube插件不支持的Hudson版本。不幸的是,Hudson的SonarQube插件将不再进行任何开发。