how does the file end up there in the first place? I guess that is copied 
there by the junit publisher (or by archiveArtifacts?), the original file 
should still be in the workspace.


Am Dienstag, 6. März 2018 10:12:18 UTC+1 schrieb Markus Neifer:
> Hi all, I want to process the JUnit result file junitResult.xml for the 
> current build. I have found this file in path 
> $JENKINS_HOME/jobs/<project>/branches/<branch>/builds/<buildNumber>/junitResult.xml
> . Now I want to use the current path in my Jenkins file as parameter like 
> this
>         stage ("Process test result") {
>             sh "mytool -resultFile ${env.<pathToJunitResultXml>}"
>         }
> I've tried env.WORKSPACE, but this is the checkout directory. Is there any 
> environment variable for the current build directory?
> Thanks in advance.
> Kind regards,
> Markus

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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to