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

Emma reports not present in M2 type jobs

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • emma-plugin
    • None
    • Platform: All, OS: All

    Description

      Emma plugin shows a code coverage trend/report only for free-style jobs. Maven
      2 jobs does not display such reports on the main project page.

      Attachments

        Activity

          marcingalazka marcingalazka added a comment -

          Due to usage of Project/Build classes (instead AbstractProject/AbstractBuild),
          a EmmaProjectAction is not registered as a project action for M2 jobs. An
          attached patch fixes this. Additionaly a base class for EmmaPublisher is
          changed from Publisher to Recorder.

          Diff generated against trunk/hudson/plugins/emma.

          marcingalazka marcingalazka added a comment - Due to usage of Project/Build classes (instead AbstractProject/AbstractBuild), a EmmaProjectAction is not registered as a project action for M2 jobs. An attached patch fixes this. Additionaly a base class for EmmaPublisher is changed from Publisher to Recorder. Diff generated against trunk/hudson/plugins/emma.
          marcingalazka marcingalazka added a comment -

          Created an attachment (id=646)
          Patch

          marcingalazka marcingalazka added a comment - Created an attachment (id=646) Patch

          Cool. I'll apply the patch.

          If you are not already a Hudson committer, would you be interested in becoming
          one so that you can hack the plugins more easily?

          kohsuke Kohsuke Kawaguchi added a comment - Cool. I'll apply the patch. If you are not already a Hudson committer, would you be interested in becoming one so that you can hack the plugins more easily?

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/plugins/emma/src/main/java/hudson/plugins/emma/EmmaProjectAction.java
          trunk/hudson/plugins/emma/src/main/java/hudson/plugins/emma/EmmaPublisher.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16890
          Log:
          [FIXED JENKINS-3424] Applied a contributed patch

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/plugins/emma/src/main/java/hudson/plugins/emma/EmmaProjectAction.java trunk/hudson/plugins/emma/src/main/java/hudson/plugins/emma/EmmaPublisher.java http://fisheye4.cenqua.com/changelog/hudson/?cs=16890 Log: [FIXED JENKINS-3424] Applied a contributed patch
          marcingalazka marcingalazka added a comment -

          I could contribute few additional (rather trivial) fixes/enchancements to Emma
          Plugin. I'm still learning a plugin architecture...

          On the other hand I'm particulary interested in two, a bit more involving,
          areas:

          • aggregated report from multi module M2 projects. I think that we need a
            clover:aggregate-like goal anyway. From what I've seen Sonatype folks are
            working on another-one-emma-maven-plugin, maybe we should bug them.
          • implementing a M2 reporter, so for native M2 jobs the plugin could pick up a
            report location automatically.
          marcingalazka marcingalazka added a comment - I could contribute few additional (rather trivial) fixes/enchancements to Emma Plugin. I'm still learning a plugin architecture... On the other hand I'm particulary interested in two, a bit more involving, areas: aggregated report from multi module M2 projects. I think that we need a clover:aggregate-like goal anyway. From what I've seen Sonatype folks are working on another-one-emma-maven-plugin, maybe we should bug them. implementing a M2 reporter, so for native M2 jobs the plugin could pick up a report location automatically.

          People

            kohsuke Kohsuke Kawaguchi
            marcingalazka marcingalazka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: