小编878*_*krs的帖子

由于找不到Junit测试报告,Jenkins构建失败:Intern Framework

我的jenkins版本是1.608,JUnit插件是1.2beta4。在本地运行测试时,我可以看到报告生成正确,但是在运行构建时,它失败了[也没有在文件夹中看到报告]。文件夹结构如下所示workspace/java/src/proj/test/test1/*.xml. :不确定是什么问题。直到上周为止还不错。jenkins配置还在“发布Junit测试报告”部分中给出了显示错误。‘src\proj\test\test1\report.xml’ doesn’t match anything: ‘src’ exists but not ‘src\proj\test\test1\report.xml’

错误-

Build step 'Execute Windows batch command' marked build as failure
Recording test results
    ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
    hudson.AbortException: No test report files were found. Configuration error?
        at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:116)
        at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:92)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
        at hudson.remoting.UserRequest.perform(UserRequest.java:121)
        at hudson.remoting.UserRequest.perform(UserRequest.java:49)
        at hudson.remoting.Request$2.run(Request.java:325)
        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
        at java.util.concurrent.FutureTask.run(FutureTask.java:274)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
        at hudson.remoting.Engine$1$1.run(Engine.java:69)
        at java.lang.Thread.run(Thread.java:798)
        at ......remote call to tm1w08perf11-5000(Native Method)
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360)
        at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
        at hudson.remoting.Channel.call(Channel.java:753)
        at hudson.FilePath.act(FilePath.java:978) …
Run Code Online (Sandbox Code Playgroud)

java junit jenkins intern

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

intern ×1

java ×1

jenkins ×1

junit ×1