-
Bug
-
Resolution: Unresolved
-
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<------------------------------------
- is related to
-
JENKINS-2058 success even when archive artifact java error
-
- Resolved
-
[JENKINS-7140] Archive the artifacts fails, still build successful
Link |
New:
This issue is related to |
Link |
New:
This issue is related to |
Link |
New:
This issue is related to |
Link |
New:
This issue is related to |
Link |
Original:
This issue is related to |
Description |
Original:
When Copy 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 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<------------------------------------- |
New:
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 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<------------------------------------- |
Environment | Original: Windows XP | New: Windows XP, Windows 2003 Server (probably all Windows) |
Summary | Original: Copy artifacts fails, still build successful | New: Archive the artifacts fails, still build successful |
Link |
Original:
This issue is related to |
This is really a problem since it breaks trust in the tool.
I linked some issues duplicating this. Particularly interesting is
JENKINS-7653where jglick recommends this patch:https://github.com/hudson/hudson/commit/3c65bb06b22317d40dd9261e831dfbcfb7daeb36