Thanks Jan! I’ll try it out and see what I find.

Best,
Matt
On Aug 21, 2019, 6:51 AM -0700, Jan Monterrubio <janmonterru...@gmail.com>, 
wrote:
> I’ve found success debugging through the plug-ins by using a combination of:
>
> - the Jenkins Test harness
> - the plugin as a dependency
> - using the Jenkins rule to run a job and hit the plugins breakpoint.
>
> Here’s some resources that might help:
>
> https://github.com/jenkinsci/jenkins-test-harness
> https://github.com/jenkinsci/gradle-jpi-plugin
> https://jenkins.io/doc/developer/testing/
>
> I’d start with a fresh gradle project and add the jpi and test harness and 
> get that working and then adding the dependencies.
>
> The jpi plugin should let you use plugins as dependencies (and your ide might 
> be able to download the sources for you to debug.
>
> > On Tue, Aug 20, 2019 at 19:25 Matt Hollingsworth <mr.hwo...@gmail.com> 
> > wrote:
> > > 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 
> > > <ullrich.haf...@gmail.com>, 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 
> > > > > <mr.hwo...@gmail.com>:
> > > > >
> > > > > 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 jenkinsci-users+unsubscr...@googlegroups.com.
> > > > > 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 
> > > > jenkinsci-users+unsubscr...@googlegroups.com.
> > > > 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 jenkinsci-users+unsubscr...@googlegroups.com.
> > > To view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/jenkinsci-users/e978431c-ab29-4df5-8e0b-d4adbfcf1e85%40Spark.
> --
> 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 
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KCkHCTkgEMBR-R_LB49k2Ug5g8Yv0kiYvpNkKS7HcyWA%40mail.gmail.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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6849d56c-94f0-4aa2-9469-200059644d41%40Spark.

Reply via email to