我想为jenkins安装jbehave插件,但是我遇到了以下错误:
Failed to scout org.jbehave.jenkins.JBehavePluginType$DescriptorImpl java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/thalesgroup/dtkit/metrics/hudson/api/descriptor/TestTypeDescriptor at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:663) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:339) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:338) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.getComponents(ExtensionList.java:154) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at org.jenkinsci.plugins.xunit.AliasInitializer.addAliases(AliasInitializer.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:886) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/thalesgroup/dtkit/metrics/hudson/api/descriptor/TestTypeDescriptor
我安装了最新的xunit插件。从link尝试最新稳定的jbehave(3.9)!和最新的beta(4.0-beta-11)失败。此外,我试图添加dtkit插件。安装了Jenkins 1.588。我查看了源代码,似乎他们使用了一个不再存在的包link!怎么办?
答案 0 :(得分:2)
JUnitReporter没有解决方案。它只是为了日食。只有解决方案是手动更改插件。我修改了pom:将xunit-plugin版本从1.6更改为1.9并修改了导入。如果有人有同样的问题,请访问hpi文件:jbehaveplugin-modified
答案 1 :(得分:0)
您是否遵循了JBehave插件安装所需的订单,如下所述:https://github.com/jbehave/jbehave-core/tree/master/jbehave-jenkins-plugin?它需要安装XUnit BEFORE JBehave插件。
此外,我建议尝试使用Jenkins的旧版本,最后一个LTS,例如(1.580.1)。
答案 2 :(得分:0)
我创建PR 118来解决此问题。有关我为此创建的Jira问题,另请参阅JBEHAVE-1160。