[英]Jenkins Error: No test report files were found. Configuration error?
I can't figure out why I have this error.我不明白为什么我有这个错误。 I've installed ant via jenkins on windows.我已经在 windows 上通过 jenkins 安装了 ant。
My project is called test-freestyle and is held at: C:\\Program Files (x86)\\Jenkins\\workspace\\test-freestyle我的项目称为test-freestyle并保存在:C:\\Program Files (x86)\\Jenkins\\workspace\\test-freestyle
I've manually created an empty Reports folder inside that test-freestyle folder and am trying to followthis tutorial and this StackOverflow post to troubleshoot .我在 test-freestyle 文件夹中手动创建了一个空的Reports文件夹,并尝试按照本教程和此 StackOverflow 帖子进行故障排除。
Here is the folder structure, proof that jenkins sees the directory build failure image这是文件夹结构,证明 jenkins 看到目录构建失败图像 Is it becasue Program Files needs admin rights to create files?是因为 Program Files 需要管理员权限才能创建文件吗?
My code is in the JUnitTest1 project.我的代码在 JUnitTest1 项目中。 My test cases are in JUnitTest1UnitTests我的测试用例在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
转到您的工作然后单击配置,然后打开高级选项并查找“使用自定义工作区”将其设置为您的需要并调整构建后操作以使用相对于您的“新”工作区路径的文件夹
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.