Hi everyone,
I ran into a weird issue that I thought you might be able to help
troubleshoot. I'm using Jenkinsfile-based Pipelines with python, and I use
pytest to produce JUnit-compatible reports after the tests are run. The
problem is that I get an error when I try to parse the results with the
junit step: "No test report files were found. Configuration error?" Here
are the relevant parts of the Jenkinsfile:
stage("Unit tests") {
steps {
sh "runtests.sh" // This produces build/pytest.xml
sh "cat build/pytest.xml"
junit 'build/pytest.xml'
}
}
The sh’s cat command runs properly and prints out a properly formatted
junit xml file--I can parse it with junit-viewer, for example. But I still
get the error. Any idea what's going on, or how I could debug this properly?
Thanks for the help!
Best,
Matt
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/8e1eae66-4c8b-4de0-9d9e-e0474a7ab93c%40googlegroups.com.