Here’s what I do for JUnit and Emma reports: 1. In the job configuration, I have a build step (execute shell) prior to executing the build, that creates a directory in the WORKSPACE for each report type (e.g. mkdir –p “${WORKSPACE}/junit-test-results”). 2. In the build step where I execute my build target (in my case, using ant), I specify the output directory for all JUnit reports (e.g. ant –Dreport.dir=${WORKSPACE}/junit-test-results build). 3. I do the same, but specifying the different workspace directory, for Emma when running my “coverage” ant target. 4. Now, down in the “Post-build Actions” section, as the previous posters stated, use the Ant pattern expression to find the .xml in your workspace directory (i.e. **/junit-test-results/*.xml).
-Jeff Ng From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Md. Humayun Kabir Rana Sent: Wednesday, November 26, 2014 12:03 AM To: jenkinsci-users@googlegroups.com Subject: EXTERNAL: Re: how to configure paths for "Publish JUnit test result report" plugin But, How I will generate xml file I could not understand. and Where I will put this xml file pls On Wednesday, December 26, 2012 9:14:52 PM UTC+6, Harpreet singh Wadhwa wrote: Regular expression is the key :-) example: "**/Test-*.xml" This will get all the files starting with Test and ending with xml (from any directory inside workspace). Thanks On Tue, Dec 25, 2012 at 12:47 PM, Z W <mpc...@gmail.com<javascript:>> wrote: Hi All We have different projects in a a build job producing different subdirectories of xml test results file How do we configure multiple paths in plugin "Publish JUnit test result report" to get the test results file from different directories path; paths are not similar. thanks -- http://wharpreet.blogspot.com http://linuxgazettes.blogspot.com<http://linuxgazettes.blogspot.com/> http://in.linkedin.com/in/wharpreet -- 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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9bed537c-92bb-46d6-938e-95183bd1ebe9%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/9bed537c-92bb-46d6-938e-95183bd1ebe9%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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/7D95357C70BD6A41A88ECBC6A89849E95376D873%40HDXDSP51.us.lmco.com. For more options, visit https://groups.google.com/d/optout.