On a Jenkins job is there a way to download the raw xml file produced by the tests? e.g. Via an extended url, etc?
The nominal way is to archive the xml file.
archiveArtifacts artifacts: 'test-results.xml'
junit 'test-results.xml'
But I figure that Jenkins already has this info in order to create the test failure UI. I'd rather not archive the xml if there's another work around.
You can fetch the raw XML by doing this -
Say if you want to see for the last completed build
<Jenkins URL>/job/<Job Name>/lastCompletedBuild/testReport/api/xml
or if you want for a specific build number
<Jenkins URL>/job/<Job Name>/<Build number>/testReport/api/xml