Hi Ullrich,

Thanks for the suggestion! I tried that, and still saw the problem. 
Speficially, I did this:

stage (“Unit tests”) {
  sh “runtests.sh”
  sh “cat build/pytest.xml”
  junit testResults: “**/build/pytest.xml"
}

Are there instructions anywhere for how to setup a dev environment for plugins? 
I’m happy to debug this myself, I’m just not sure exactly where to start.


Best,
Matt
On Aug 18, 2019, 1:52 PM -0700, Ullrich Hafner <[email protected]>, 
wrote:
> Shoudn’t the command use ’testResults’ as parameter name?
>
> junit testResults: '**/build/pytest.xml'
>
>
> > Am 18.08.2019 um 06:42 schrieb Matt Hollingsworth <[email protected]>:
> >
> > 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.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jenkinsci-users/Rw49YOnH-nk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/D0E7E558-57F6-4B92-8724-3D7156A5EA96%40gmail.com.

-- 
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/e978431c-ab29-4df5-8e0b-d4adbfcf1e85%40Spark.

Reply via email to