-
Improvement
-
Resolution: Fixed
-
Minor
-
None
Changing
publishCoverage adapters: [coberturaAdapter('coverage.xml')], sourceFileResolver: sourceFiles('STORE_ALL_BUILD')
for
cobertura coberturaReportFile: 'coverage.xml'
makes the step take ~7 seconds instead of ~7 minutes.
I'm not going to pretend I understand the details. But the coverage report from "cobertura" does include the source files, so I don't understand why the big difference.
Seeing "publishCoverage" work it looks like it has "205 source files need to be copied" and it copies all of them, one after the other, very slowly. There doesn't seem to be any parallelization.
I have this problem too. I have a multi-module, multi-language project with multiple cobertura-style XML coverage reports for Jenkins to publish, which means (as far as I know) that I can't use the fast way.
I would very much love to see this go faster! Why must we copy every file individually?!