Jenkins & JUnit : Path to XML impossible to set

jenkins tutorial
jenkins wiki
jenkins login
jenkins download
jenkins github
jenkins documentation
jenkins ci/cd
jenkins pipeline

The question may sound silly, but I haven't found how to configure the XML report path in the Post-build Junit task after an hour of manipulations. I generate the JUnit test report (the XML file) here :

C:\Program Files\Jenkins\jobs\UPWSP\workspace\up\UPWSP\current\06-Java Unit Testing\junit\TESTS-TestSuites.xml

And the job using the XML has its worskpace at this path :

C:\Program Files\Jenkins\jobs\UPWSP - Tests JUnit\workspace\

The JUnit report post-build task seems to take only relatives path and I already tried with

../../UPWSP/up/UPWSP/current/06-Java Unit Testing/junit/TESTS-TestSuites.xml

**../../UPWSP/up/UPWSP/current/06-Java Unit Testing/junit/TESTS-TestSuites.xml

It always tells me '..' is not a valid path, and an absolute path won't work either. Any idea of how I should use it?

AFAIK, the path for the JUnit XML file has to be a sub-directory of your project. It should not be outside the job's workspace. Once you have created a directory inside workspace, say for example, junit-test, then the following should work as expected when specified in Test report XMLs section: junit-test\TESTS-TestSuites.xml

Jenkins 2: Up and Running: Evolve Your Deployment Pipeline for Next Generation Automation Spotbugs is a utility used in Jenkins and many other Java projects to detect common Java coding mistakes and bugs. It is integrated into the build process to improve the code before it gets merged and released.

You can use wildcards like **/target/surefire-reports/*.xml or, in your case, **/junit/*.xml

Jenkins offers a simple way to set up a continuous integration and continuous delivery environment for almost any combination of languages  Jenkins is a free and open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat.

This is a work around and not an actual answer. I had to copy the xml to the job directory with a xcopy command line. My job is now working, but that's not how I expected things to work

Jenkins® is an open source automation server. With Jenkins, organizations can accelerate the software development process by automating it. Jenkins  Jenkins is a software that allows continuous integration. Jenkins will be installed on a server where the central build will take place. The following flowchart demonstrates a very simple workflow of how Jenkins works. Along with Jenkins, sometimes, one might also see the association of Hudson.

Try putting this in the "Test report XMLs" field (assuming you are on windows machine):

up\UPWSP\current\06-Java Unit Testing\junit\*.xml

I am not clear about "job using the XML" part you detailed. How is that related to the job generating the junit reports?

Jenkins is a continuous integration tool that allows continuous development, test and Duration: 19:53 Posted: Sep 17, 2018 Jenkins is a fork of a project called Hudson, which was trademarked by Oracle. Hudson was eventually donated to the Eclipse Foundation and is no longer under development. Jenkins development is now managed as an open source project under the governance of the CD Foundation, an organization within the Linux Foundation.

You have to put junit step into dir step like this:

    stage("Run tests")
        echo "Here generate some test_result.xml files in /some/path"
  post {
    success {
        junit '**/test_result.xml'


In a nutshell, Jenkins is the leading open-source automation server. Built with Java, it provides over 1600 plugins to support automating virtually anything, so that  Jenkins is an open source Continuous Integration server capable of orchestrating a chain of actions that help to achieve the Continuous Integration process (and not only) in an automated fashion. Jenkins is free and is entirely written in Java.

Jenkins is an open source automation tool written in Java with plugins built for Continuous Duration: 35:50 Posted: May 22, 2019 Jenkins is an open source automation server. The content driving this site is licensed under the Creative Commons Attribution-ShareAlike 4.0 license.

Jenkins is an open source continuous integration/continuous delivery and deployment (CI/CD Duration: 10:38 Posted: Nov 22, 2019 Jenkins is an open source automation server with an unparalleled plugin ecosystem to support practically every tool as part of your delivery pipelines. Santa Clara, CA. Repositories 2.2k Packages People 678 Projects 2. Grow your team on GitHub. GitHub is home to over 40 million developers

The Jenkins family name was found in the USA, the UK, Canada, and Scotland between 1840 and 1920. The most Jenkins families were found in the USA in 1880. In 1840 there were 225 Jenkins families living in Virginia. This was about 11% of all the recorded Jenkins's in the USA.

  • Jenkins can reach anywhere under $WORKSPACE - a sub-directory is not required.
  • The reports generate a xml file, and I use it in the same job :)