我无法弄清楚为什么我有这个错误。我已经在Windows上通过jenkins安装了ant。
我的项目名为test-freestyle,保存在:C:\ Program Files(x86)\ Jenkins \ workspace \ test-freestyle
我在test-freestyle文件夹中手动创建了一个空的Reports文件夹,并试图关注this tutorial和this StackOverflow post to troubleshoot。
这是文件夹结构,证明jenkins看到目录build failure image 是因为Program Files需要管理员权限来创建文件吗?
我的代码在JUnitTest1项目中。我的测试用例在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
转到您的工作,然后单击配置,然后打开高级选项并查找“使用自定义工作区”将其设置为您的需要并调整postbuild操作以使用文件夹亲属到您的“新”工作区路径