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

Automatically archived artifacts from Maven2 jobs are not accessible (or I do not know how :-))

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • copyartifact-plugin
    • None
    • Hudson 1.355, copyartifact plugin 1.1, Linux, Java 1.6.0_17

      Hello,

      I have set up a Maven2 job (see http://s312195779.online.de/hudson/job/HgKit/), where artifacts are archived automatically under http://s312195779.online.de/hudson/job/HgKit/de.berlios.hgkit$hgkit/lastSuccessfulBuild/artifact/.

      I tried to use copyartifact from another job trying as Ant filesets:

      1. de.berlios.hgkit$hgkit/lastSuccessfulBuild/artifact/
      2. **/*jar
      3. left empty.

      The plugin always reported no artifacts to be copied.

      A workaround was to manually set up a "Archive artifacts" Postbuild step, which stores the jars beneath http://s312195779.online.de/hudson/job/HgKit/lastSuccessfulBuild/artifact/

      Regards
      Mirko

          [JENKINS-6355] Automatically archived artifacts from Maven2 jobs are not accessible (or I do not know how :-))

          Alan Harder added a comment -

          Does it work if you enter "HgKit/de.berlios.hgkit$hgkit" as the source project for copyartifact? If so, I'll update the help text with some info about maven modules.

          Alan Harder added a comment - Does it work if you enter "HgKit/de.berlios.hgkit$hgkit" as the source project for copyartifact? If so, I'll update the help text with some info about maven modules.

          Hello,

          yes, entering "HgKit/de.berlios.hgkit$hgkit" as source project leaving "Artifacts to copy" empty copies all three artifacts and having de.berlios.hgkit/hgkit/SNAPSHOT/*.jar as "Artifacts to copy" only copies the JARs without the pom.xml as expected.

          Updating the help text would be good .

          Regards
          Mirko

          Mirko Friedenhagen added a comment - Hello, yes, entering "HgKit/de.berlios.hgkit$hgkit" as source project leaving "Artifacts to copy" empty copies all three artifacts and having de.berlios.hgkit/hgkit/SNAPSHOT/*.jar as "Artifacts to copy" only copies the JARs without the pom.xml as expected. Updating the help text would be good . Regards Mirko

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-projectName.html
          http://jenkins-ci.org/commit/30420
          Log:
          [copyartifact] [FIXED JENKINS-6355] add help text about copying artifacts
          from a particular module of a Maven project.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-projectName.html http://jenkins-ci.org/commit/30420 Log: [copyartifact] [FIXED JENKINS-6355] add help text about copying artifacts from a particular module of a Maven project.

          I will close this issue after the next release, then .

          Thanks
          Mirko

          Mirko Friedenhagen added a comment - I will close this issue after the next release, then . Thanks Mirko

          Fixes are released.

          Mirko Friedenhagen added a comment - Fixes are released.

            mindless Alan Harder
            mfriedenhagen Mirko Friedenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: