James Kitchai
James Kitchai

Reputation: 31

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 follow this tutorial and this StackOverflow post to troubleshoot.

Here is the folder structure, proof that jenkins sees the directory build failure image 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

Upvotes: 2

Views: 11766

Answers (1)

RoloITCR
RoloITCR

Reputation: 11

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

Upvotes: 1

Related Questions