-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins cobertura plugin 1.4, 1.5
grails and grails maven plugin
I'm building a project using grails and grails-maven-plugin.
Since version 1.4 of the plugin, the cobertura report is not published because the cobertura-maven-plugin is not invoked:
... Cobertura: Loaded information on 293 classes. Cobertura: Saved information on 293 classes. Skipping Cobertura coverage report as mojo did not run. ...
Looking at the sources of the plugin, it's mandatory to execute the cobertura-maven-plugin to publish reports (and that's not the way grails work!).
I can't see why this test is done (as we need to provide the path of the report). Would it be possible to remove/adapt this check?
As a workaround: I'm using version 1.3 of the plugin.
thanks
- is related to
-
JENKINS-12857 cobertura - add option to make build as unstable (or not at all) instead of failed when no coverage xml files are found
-
- Resolved
-
-
JENKINS-12640 Cobertura plugin should not fail maven build for maven release
-
- Closed
-
[JENKINS-14552] Cannot plublish cobertura reports if org.codehaus.mojo:cobertura-maven-plugin is not invoked
Description |
Original:
I'm building a project using grails and grails-maven-plugin. Since version 1.4 of the plugin, the cobertura report is not published because the cobertura-maven-plugin is not invoked: {code} ... Cobertura: Loaded information on 293 classes. Cobertura: Saved information on 293 classes. Skipping Cobertura coverage report as mojo did not run. ... {code} Looking at the sources of the plugin, it's mandatory to execute the cobertura-maven-plugin to publish reports (and that's not the way grails work!). I can't see why this test is done (as we need to provide the path of the report). Wouls it be possible to remove/adapt this check? As a workaround: I'm using version 1.3 of the plugin. thanks |
New:
I'm building a project using grails and grails-maven-plugin. Since version 1.4 of the plugin, the cobertura report is not published because the cobertura-maven-plugin is not invoked: {code} ... Cobertura: Loaded information on 293 classes. Cobertura: Saved information on 293 classes. Skipping Cobertura coverage report as mojo did not run. ... {code} Looking at the sources of the plugin, it's mandatory to execute the cobertura-maven-plugin to publish reports (and that's not the way grails work!). I can't see why this test is done (as we need to provide the path of the report). Would it be possible to remove/adapt this check? As a workaround: I'm using version 1.3 of the plugin. thanks |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is related to |
I don't know what the OP meant with "the cobertura-maven-plugin is not invoked:". However, in 1.5 the plugin is not producing the reports for a multi-module maven project of mine.
Details:
Result:
Same setup, plugin version 1.3:
[1]
[INFO] Cobertura Report generation was successful.
[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 53 classes.
Report time: 1670ms
[INFO] Cobertura Report generation was successful.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Parent .............................................. SUCCESS [2.882s]
[INFO] Model .............................................. SUCCESS [5.370s]
[INFO] Web ................................................. SUCCESS [33.970s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:40.478s
[INFO] Finished at: Wed Jul 25 13:08:43 WEST 2012
[INFO] Final Memory: 14M/35M
[INFO] ------------------------------------------------------------------------
Archiving workspace
Deleting old workspace snapshot from #412.
Skipping Cobertura coverage report as mojo did not run.
Finished: SUCCESS
[2]
[INFO] Cobertura Report generation was successful.
[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 53 classes.
Report time: 2237ms
[INFO] Cobertura Report generation was successful.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Parent .............................................. SUCCESS [6.470s]
[INFO] Model ............................................... SUCCESS [5.247s]
[INFO] Web ................................................. SUCCESS [28.529s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:28.671s
[INFO] Finished at: Wed Jul 25 14:35:39 WEST 2012
[INFO] Final Memory: 14M/36M
[INFO] ------------------------------------------------------------------------
Archiving workspace
Deleting old workspace snapshot from #413.
Publishing Cobertura coverage report...
Publishing Cobertura coverage results...
Finished: SUCCESS