-
Bug
-
Resolution: Not A Defect
-
Major
-
None
We need to keep disk space usage to a minimum, so we run mvn clean after every build.
Unfortunately, with the post-build steps available in jenkins, the mvn clean runs before the cobertura report gets a chance to collect its data. So it complains that it cannot find coverage.xml and fails the build.
The workaround we have is to use the m2extra steps plugin (which was deprecated after jenkins introduced the pre and post build capability). The m2extra steps plugin runs after the cobertura plugin.
[JENKINS-13840] Cobertura fails the build if post build action of clean is specified
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 144308 ] | New: JNJira + In-Review [ 205868 ] |