简体   繁体   中英

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.

My project is called test-freestyle and is held at: 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 .

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?

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

转到您的工作然后单击配置,然后打开高级选项并查找“使用自定义工作区”将其设置为您的需要并调整构建后操作以使用相对于您的“新”工作区路径的文件夹

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM