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

Archive the artifacts fails, still build successful

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Windows XP, Windows 2003 Server (probably all Windows)

      When Archive the Artifacts fails, e.g. when disk is full, still build is successful!
      This applies to the built-in "archive the artifacts" as well as to "archive for clone workspace SCM".

      Seems to be related to JENKINS-2058.

      Log output (sorry, partly in German; translations behind "--->")
      ----------------------------------8<------------------------------------
      Archiviere Artefakte ---> archiving artifacts
      ERROR: Artefakte konnten nicht archiviert werden: fooProject/** ---> artifacts could not be archived
      hudson.util.IOException2: Failed to copy C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace/fooProject/** to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\archive
      at hudson.FilePath$31.invoke(FilePath.java:1451)
      at hudson.FilePath$31.invoke(FilePath.java:1418)
      at hudson.FilePath.act(FilePath.java:753)
      at hudson.FilePath.act(FilePath.java:735)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1418)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      at hudson.model.Build$RunnerImpl.post2(Build.java:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1281)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:129)
      Caused by: Failed to copy C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\workspace\fooProject\fooBar\fooBarProject to C:\BuildRoot\Config\.hudson\jobs\fooProject-barBranch\builds\2010-08-05_14-32-18\archive\fooProject\fooBar\fooBarProject due to Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung
      ---> there isn't enough disk space available
      at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:853)
      at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1434)
      at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
      at hudson.FilePath$31.invoke(FilePath.java:1448)
      ... 15 more
      Caused by: java.io.IOException: Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung
      ---> there isn't enough disk space available
      at sun.nio.ch.FileDispatcher.write0(Native Method)
      at sun.nio.ch.FileDispatcher.write(Unknown Source)
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
      at sun.nio.ch.IOUtil.write(Unknown Source)
      at sun.nio.ch.FileChannelImpl.write(Unknown Source)
      at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(Unknown Source)
      at sun.nio.ch.FileChannelImpl.transferTo(Unknown Source)
      at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:475)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
      at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:841)
      ... 18 more
      Notifying upstream projects of job completion
      Finished: SUCCESS
      ----------------------------------8<------------------------------------

          [JENKINS-7140] Archive the artifacts fails, still build successful

          nhofmeister added a comment -

          This is really a problem since it breaks trust in the tool.
          I linked some issues duplicating this. Particularly interesting is JENKINS-7653 where jglick recommends this patch:
          https://github.com/hudson/hudson/commit/3c65bb06b22317d40dd9261e831dfbcfb7daeb36

          nhofmeister added a comment - This is really a problem since it breaks trust in the tool. I linked some issues duplicating this. Particularly interesting is JENKINS-7653 where jglick recommends this patch: https://github.com/hudson/hudson/commit/3c65bb06b22317d40dd9261e831dfbcfb7daeb36

          Harry G. added a comment -

          This seriuos bug is still open...

          I updated the title and description to "Archive the artifacts" (instead of copy artifacts, as this might be mixed up with copy artifacts plugin; when I created this job in 2010, the copy artifacts plugin was quite new and not so popular).

          Not checked for Linux, possibly Linux is also affected when e.g. disk is full?

          Harry G. added a comment - This seriuos bug is still open... I updated the title and description to "Archive the artifacts" (instead of copy artifacts, as this might be mixed up with copy artifacts plugin; when I created this job in 2010, the copy artifacts plugin was quite new and not so popular). Not checked for Linux, possibly Linux is also affected when e.g. disk is full?

          Jesse Glick added a comment -

          Using JENKINS-2058 for core bug; leaving this open for clone workspace plugin which I guess has its own copy of the code.

          Jesse Glick added a comment - Using JENKINS-2058 for core bug; leaving this open for clone workspace plugin which I guess has its own copy of the code.

            Unassigned Unassigned
            harrygg Harry G.
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: