cobertura / jenkins failing to publish non-zero code coverage graphs

17 views
Skip to first unread message

Stuart Cracraft

unread,
Nov 13, 2016, 4:09:37 PM11/13/16
to Jenkins Users
Cobertura xml report pattern in post-build actions in Jenkins build job:

  **/target/site/cobertura/coverage.xml

results in Code Coverage Report of 0/2 for packages, 0/7 for files, 0/7 for classes, 0/55 for methods, 0/164 for lines and 0/70 for conditionals.

This is from the book "Jenkins: The Definitive Guide" pages 34-40.

In Invoke top-level Maven targets, Maven Version is 3.3.9 and goals are 

  cobetura:cobetura -Dcobertura.report.format=xml

Tried it both with and without the -D.....=xml

Has something changed between the publication/review date of the book and the current Jenkins/Cobetura which would cause the above?

/var/lib/jenkins/workspace/gameoflife-default/gameoflife-core/target/cobertura/cobertura.ser is being generated every 30 minutes.
Reply all
Reply to author
Forward
0 new messages