Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14552

Cannot plublish cobertura reports if org.codehaus.mojo:cobertura-maven-plugin is not invoked

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cobertura-plugin
    • 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

          [JENKINS-14552] Cannot plublish cobertura reports if org.codehaus.mojo:cobertura-maven-plugin is not invoked

          drautureau created issue -
          drautureau made changes -
          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
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          sogabe made changes -
          Link New: This issue is related to JENKINS-12857 [ JENKINS-12857 ]
          Croesus Kall made changes -
          Link New: This issue is related to JENKINS-12640 [ JENKINS-12640 ]
          Stephen Connolly made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145237 ] New: JNJira + In-Review [ 206015 ]

            stephenconnolly Stephen Connolly
            drautureau drautureau
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: