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

CopyArchiver from Matrix Project does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • copyarchiver-plugin
    • None
    • Debian Etch, java version "1.5.0_14"

    Description

      Hello,

      I'm unable to archive/aggregate artifacts from a Matrix Project (multi-configuration).
      Even calling CopyArchiver from the same project ( it use workspace directory ).
      I have tried, with "classic" projetc with success.

      I get errors like this:
      Archiving artifacts
      [CopyArchiverPublisher] Copying archived artifacts in the shared directory '/home/hudson/workspace/aggregate/label/centos-5-amd64/agg/'.
      [CopyArchiverPublisher] Error on copyarchiver analysis: hudson.util.IOException2: java.io.IOException: Unconnected pipe
      at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:151)
      at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
      at java.io.FilterInputStream.read(FilterInputStream.java:107)
      at hudson.util.HeadBufferingStream.fillSide(HeadBufferingStream.java:83)
      at hudson.FilePath$TarCompression$2.extract(FilePath.java:474)
      at com.thalesgroup.hudson.plugins.copyarchiver.FilePathArchiver.copyRecursiveTo(FilePathArchiver.java:158)
      at com.thalesgroup.hudson.plugins.copyarchiver.CopyArchiverPublisher.perform(CopyArchiverPublisher.java:249)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
      at hudson.model.Build$RunnerImpl.post2(Build.java:152)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1221)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

      Finished: FAILURE

      Is CopyArchiver Matrix Project Capable ?

      Thanks

      Javier

      Attachments

        Activity

          gbois Gregory Boissinot added a comment - - edited

          Please could you test the latest source code in trunk?
          Thanks

          gbois Gregory Boissinot added a comment - - edited Please could you test the latest source code in trunk? Thanks
          javyer javyer added a comment -

          Hello,

          Here is my test report of the day :

          • Aggregating from the same projects (workspace range):

          It works ! just an error that cause build to go wrong, but files are correctly copied to master directory provided:
          Archiving artifacts
          [CopyArchiverPublisher] Copying archived artifacts in the shared directory '/var/lib/hudson/jobs/proj/builds/2010-03-03_10-13-04/archive'.
          [CopyArchiverPublisher] Error on copyarchiver analysis: java.io.IOException: Unable to delete /tmp/hudson2108744363845992258tmp - files in dir: [/tmp/hudson2108744363845992258tmp/proj_V0.1_2010-03-03_41_i686_debian-lenny.tar.gz]
          Finished: FAILURE
          I have this error on each slave log of course ... and directory /tmp/hudson2108744363845992258tmp is created into master only, and contains the artifact's slave. For each slave i have a random directory into /tmp master's directory containing the artifact.

          As you can see i have manually selected shared directory to /var/lib/hudson/jobs/proj/builds/${BUILD_ID}/archive
          What is very nice because, is that now a can see all artifacts aggregated into build first page (http://hudson/job/proj/build_ID/), without having to search into salve's builds ! Just click on master build page, nice . I think that hudson core would have to do that by default ... Of courses artifacts files must have different names on each slave, what is not very common i think.

          • Aggregating from an other project (archived artifacts only):
            Using a Matrix project , nothing is copied, i have tried to create manually an archive directory /var/lib/hudson/jobs/jobname/builds/1/archive into a Matrix project and added some files into, but no files are found :
            [CopyArchiverPublisher] Copying archived artifacts in the shared directory '/var/lib/hudson/jobs/aggg/workspace/2010-03-03_10-02-48'.
            [CopyArchiverPublisher] '0' artifacts have been copied.
            [CopyArchiverPublisher] Stop copying archived artifacts in the shared directory.
          javyer javyer added a comment - Hello, Here is my test report of the day : Aggregating from the same projects (workspace range): It works ! just an error that cause build to go wrong, but files are correctly copied to master directory provided: Archiving artifacts [CopyArchiverPublisher] Copying archived artifacts in the shared directory '/var/lib/hudson/jobs/proj/builds/2010-03-03_10-13-04/archive'. [CopyArchiverPublisher] Error on copyarchiver analysis: java.io.IOException: Unable to delete /tmp/hudson2108744363845992258tmp - files in dir: [/tmp/hudson2108744363845992258tmp/proj_V0.1_2010-03-03_41_i686_debian-lenny.tar.gz] Finished: FAILURE I have this error on each slave log of course ... and directory /tmp/hudson2108744363845992258tmp is created into master only, and contains the artifact's slave. For each slave i have a random directory into /tmp master's directory containing the artifact. As you can see i have manually selected shared directory to /var/lib/hudson/jobs/proj/builds/${BUILD_ID}/archive What is very nice because, is that now a can see all artifacts aggregated into build first page ( http://hudson/job/proj/build_ID/ ), without having to search into salve's builds ! Just click on master build page, nice . I think that hudson core would have to do that by default ... Of courses artifacts files must have different names on each slave, what is not very common i think. Aggregating from an other project (archived artifacts only): Using a Matrix project , nothing is copied, i have tried to create manually an archive directory /var/lib/hudson/jobs/jobname/builds/1/archive into a Matrix project and added some files into, but no files are found : [CopyArchiverPublisher] Copying archived artifacts in the shared directory '/var/lib/hudson/jobs/aggg/workspace/2010-03-03_10-02-48'. [CopyArchiverPublisher] '0' artifacts have been copied. [CopyArchiverPublisher] Stop copying archived artifacts in the shared directory.

          Ok, I fixed it.
          Could you try again?

          gbois Gregory Boissinot added a comment - Ok, I fixed it. Could you try again?
          javyer javyer added a comment -

          Hello Gbois,

          It looks like it works fine on each case now, I'm going now to add this plugins on many projects, and made some more tests .
          Thanks again.

          Javier

          javyer javyer added a comment - Hello Gbois, It looks like it works fine on each case now, I'm going now to add this plugins on many projects, and made some more tests . Thanks again. Javier

          Fixed in 0.4.3

          gbois Gregory Boissinot added a comment - Fixed in 0.4.3

          People

            gbois Gregory Boissinot
            javyer javyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: