无法在Jenkins的Post Build Action中触发JiraTestResultReporter插件

无法在Jenkins的Post Build Action中触发JiraTestResultReporter插件

问题描述:

我想在任何测试用例获取失败时自动在jira上记录缺陷。我已经使用JiraTesttResultReport plugin.i已成功创建我的report.xml文件。但我得到了以下错误:无法在Jenkins的Post Build Action中触发JiraTestResultReporter插件

Build step 'Publish JUnit test result report' changed build result to UNSTABLE 
[JiraTestResultReporter] [INFO] Examining test results... 
ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception 
java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; 
    at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:105) 
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) 
    at hudson.model.Build$BuildExecution.post2(Build.java:183) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) 
    at hudson.model.Run.execute(Run.java:1766) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
    at hudson.model.ResourceController.execute(ResourceController.java:98) 
    at hudson.model.Executor.run(Executor.java:374) 

在您正在使用哪个版本的Jenkins? JiraTestResultReporter不会对詹金斯1.577+ 工作这是一个众所周知bug

一种解决方法是建立和安装插件的快照。

+0

那么我们如何在Jenkins 1.577+上使用这个插件 – AdityaK