Open seanleblanc opened 6 years ago
Is the Cobertura Publish plugin a Gradle plugin or a Jenkins one?
If it is a Gradle plugin, then the problem is most likely that Gradle is failing the build as soon as a task fails. I set up the cobertura task to finalize test tasks so that it will always run, but other tasks in the build will fail.
If it is a Jenkins plugin, my guess is that the step that runs the publish is not running when prior steps fail, though I am not too familiar with Jenkins.
Although I think the coverage.xml is created, the build tends to exit with an error if some tests fail, causing Jenkins to not publish the report. Is there any way around this? It's odd, because the Cobertura Publish plugin in my job is not set up to fail under these conditions, I don't think (expanded the Advanced options).