2015-12-02 82 views
0

我想在任何測試用例獲取失敗時自動在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) 

回答

0

在您正在使用哪個版本的Jenkins? JiraTestResultReporter不會對詹金斯1.577+ 工作這是一個衆所周知bug

一種解決方法是建立和安裝插件的快照。

+0

那麼我們如何在Jenkins 1.577+上使用這個插件 – AdityaK

相關問題