Jenkins错误:找不到测试报告文件.配置错误? [英] Jenkins Error: No test report files were found. Configuration error?
问题描述
我不知道为什么会出现此错误.我已经通过jenkins在Windows上安装了ant.
I can't figure out why I have this error. I've installed ant via jenkins on windows.
我的项目称为 test-freestyle ,保存在:C:\ Program Files(x86)\ Jenkins \ workspace \ test-freestyle
My project is called test-freestyle and is held at: C:\Program Files (x86)\Jenkins\workspace\test-freestyle
我已经在该test-freestyle文件夹中手动创建了一个空的 Reports 文件夹,并尝试遵循此StackOverflow帖子进行故障排除.
I've manually created an empty Reports folder inside that test-freestyle folder and am trying to follow this tutorial and this StackOverflow post to troubleshoot.
这是文件夹结构,证明jenkins可以看到目录构建失败图像 是因为程序文件需要管理员权限才能创建文件?
Here is the folder structure, proof that jenkins sees the directory build failure image Is it becasue Program Files needs admin rights to create files?
我的代码在JUnitTest1项目中.我的测试用例在 JUnitTest1UnitTests
My code is in the JUnitTest1 project. My test cases are in JUnitTest1UnitTests
build-project:
[echo] JUnitTest1: C:\Users\----\Documents\workspace\JUnitTest1\build.xml
init:
build-project:
[echo] JUnitTest1UnitTests: C:\Users\-----\Documents\workspace\JUnitTest1UnitTests\build.xml
build:
BUILD SUCCESSFUL
Total time: 0 seconds
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
Finished: FAILURE
推荐答案
转到您的工作,然后单击配置",然后打开高级"选项并查找使用自定义工作区",将其设置为您需要的内容,并调整后构建操作以使用文件夹您的新"工作空间路径的亲戚
Go to you job then click Configure, then open Advance option and look for "use custom workspace" set it as your need and adjust the postbuild action to use folders relatives to your "new" workspace path
这篇关于Jenkins错误:找不到测试报告文件.配置错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!