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

Attachments are not collected for Maven2 jobs

    Details

    • Similar Issues:

      Description

      Currently attachments are only collected for Freestyle-Jobs, not for Maven2 jobs.
      Stepping into the code I discovered that in:
      hudson.maven.MavenTestDataPublisher.perform(AbstractBuild, Launcher, BuildListener)
      build.getAction(SurefireReport.class) will return null, so the action is not triggered.

      The actions available in build are:

      [hudson.model.CauseAction@1460d4b0, hudson.plugins.mercurial.MercurialTagAction@6e3066a8, hudson.scm.SCMRevisionState$None@2ba3d81c, hudson.maven.reporters.SurefireAggregatedReport@3993f896, hudson.maven.reporters.MavenAggregatedArtifactRecord@68daff7b]

      none of which is of type SurefireReport.class.

      See http://n4.nabble.com/TestAction-not-applicable-for-Maven2-jobs-td1556603.html#a1556603 for the discussion and probably
      http://n4.nabble.com/saving-files-with-builds-td1559779.html#a1559779

        Attachments

          Issue Links

            Activity

            Hide
            thedug thedug added a comment -

            I'm experiencing this too..

            Show
            thedug thedug added a comment - I'm experiencing this too..
            Hide
            stefcom Stefan Krecher added a comment -

            same here: i'd like to publish some selenium rc logs

            Show
            stefcom Stefan Krecher added a comment - same here: i'd like to publish some selenium rc logs
            Hide
            spinel Sebastien Pinel added a comment -

            I put some fixes for this bug on JENKINS-9767 because this affect core component not junit attachment one.
            Here I post the fixes for junit attachment in order to take in account Maven job.

            Show
            spinel Sebastien Pinel added a comment - I put some fixes for this bug on JENKINS-9767 because this affect core component not junit attachment one. Here I post the fixes for junit attachment in order to take in account Maven job.
            Hide
            spinel Sebastien Pinel added a comment -

            Forgot about the dependency with maven-plugin and the updated Manifest

            Show
            spinel Sebastien Pinel added a comment - Forgot about the dependency with maven-plugin and the updated Manifest

              People

              • Assignee:
                Unassigned
                Reporter:
                mfriedenhagen Mirko Friedenhagen
              • Votes:
                9 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: