Jenkins JUnit plugin gives error "ERROR: No test report files were found. Configuration error?" Jenkins JUnit plugin gives error "ERROR: No test report files were found. Configuration error?" jenkins jenkins

Jenkins JUnit plugin gives error "ERROR: No test report files were found. Configuration error?"


I figured out the answer. JUnit needs a relative path from within the workspace. You don't need to include the path to the workspace.

junit 'tests/results/*.xml'


I had this error because I had a leading dot in the path to the test results, e.g.:

junit './build/outputs/androidTest-results/connected/flavors/DEV/*.xml'

I'm not sure why, but this fixed it:

junit 'build/outputs/androidTest-results/connected/flavors/DEV/*.xml'