Hello,

I'm trying to replace several jobs with a single  workflow job.

One of the jobs was a matrix one which built and run tests under several 
configuration (namely debug and release builds).

The groovy script below replaces it, but the test results from the two 
configurations are mixed in the junitResult.xml. All the test results are 
in the file, but their origin is lost.

On the contrary, the matrix job kept one junitResult.xml file per 
(configuration-specific) sub-job so the information was not lost.

How could I get this feature back in my workflow job?
Maybe a solution would be to let JUnitResultArchiver take a "destination" 
argument?

String[] release_types = ['debug', 'release']
for (int i = 0; i < release_types.size(); ++i) {
  String release_type = release_types[i]
  node("qibuild-linux64") {
    echo "release_type: ${release_type}"
    env.release_type = release_type
    sh "build.py"
    step([$class: 'JUnitResultArchiver', testResults: 'tests/*/*.xml'])
  }
}

cheers,
Sébastien

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/07f0d382-0c34-4a69-89a4-9b673cb2f155%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to