Jenkins Error Failed To Archive Artifacts
Contents |
- 15th for jenkins "failed to extract" workshops, presentations and all things Jenkins Learn java.io.ioexception: java.io.ioexception: failed to extract more Export Tools JenkinsJENKINS-21905intermittent Failed to archive artifacts: Failed to
Jenkins Java.io.ioexception: Java.io.ioexception: Failed To Extract
extract caused by Unexpected end of ZLIB input streamLog In ExportXMLWordPrintable Details Type: Bug Status: Reopened Priority:
Truncated Tar Archive
Critical Resolution: Unresolved Component/s: core Labels: None Similar Issues: Show Description Since approximately 1/30 we have seen 15 very intermittent archiving failures in Jenkins, of the form: Archiving artifacts ERROR: Failed to archive artifacts: this archives contains unclosed entries versions/**, archive/** java.io.IOException: Failed to extract /foo/bar/slave/workspace/someJob/transfer of 7 files at hudson.FilePath.readFromTar(FilePath.java:2088) at hudson.FilePath.copyRecursiveTo(FilePath.java:2000) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:140) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705) at hudson.model.Run.execute(Run.java:1695) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.EOFException: Unexpected end of ZLIB input stream at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186) at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228) at hudson.FilePath.readFromTar(FilePath.java:2066) ... 12 more Build step 'Archive the artifacts' changed build result to FAILURE We definitely have seen this running 1.548 and later, especially with 1.549. I cannot confirm if we saw it with 1.547 or earlier, but if so, I think it was le
- 15th for workshops, presentations and all things Jenkins Learn more Export Tools JenkinsJENKINS-19473failed to archive slave artifacts. Unexpected end of ZLIB https://issues.jenkins-ci.org/browse/JENKINS-21905 input streamLog In ExportXMLWordPrintable Details Type: Bug Status: Resolved Priority: Major Resolution: Fixed Component/s: copyartifact-plugin Labels: 1.532.2-fixed archive artifact gzip regression Environment: Scientific Linux URL: https://github.com/ymnk/jzlib/issues/9 Similar https://issues.jenkins-ci.org/browse/JENKINS-19473 Issues: Show Description Since updating to 1.529 the slave archive artifacts is failing with this stack trace. ERROR: Failed to archive artifacts: .xml,.log,product//.log,product//.xml,product///.log,product///.xml hudson.util.IOException2: hudson.util.IOException2: Failed to extract /var/lib/jenkins/workspace/MainlineDevtest/.xml,.log,product//.log,product//.xml,product///.log,product///.xml at hudson.FilePath.readFromTar(FilePath.java:2044) at hudson.FilePath.copyRecursiveTo(FilePath.java:1956) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1628) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Caused by: java.io.EOFException: Unexpected end of ZLIB input stream at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186) at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345) at java.io.FilterInputStream.read(FilterInputStream.java:107) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.common
- 15th for workshops, presentations and all things Jenkins Learn more Export https://issues.jenkins-ci.org/browse/JENKINS-11087 Tools JenkinsJENKINS-11087Failure to archive artifacts doesn't cause build to failLog In ExportXMLWordPrintable Details Type: Bug Status: Resolved Priority: Major Resolution: Duplicate Component/s: http://stackoverflow.com/questions/10928928/jenkins-save-artifact-when-build-failed core Labels: None Environment: Windows 7 master with slaves across multiple Windows and Unix environments Similar Issues: Show Description When archiving artifacts, failed to if the host machine is out of disk space the archive artifacts feature does not fail the build. In my case this means any downstream builds dependent on these artifacts kick off and fail due to the artifacts not existing. Example: 23:52:34 Archiving failed to extract artifacts 23:53:36 ERROR: Failed to archive artifacts: coreteststag, viscob/installer/*/.exe, viscob/installer/*/.msi, viscob/vscore/testdata.zip, viscob/cobdir/Release/UpdateSite/*, viscob/testing/debugharness/, viscob/eclipseide/testware/* 23:53:36 hudson.util.IOException2: hudson.util.IOException2: Failed to extract c:\jenkins\workspace\R5_Win_Overnight/coreteststag, viscob/installer/*/.exe, viscob/installer/*/.msi, viscob/vscore/testdata.zip, viscob/cobdir/Release/UpdateSite/*, viscob/testing/debugharness/, viscob/eclipseide/testware/* 23:53:36 at hudson.FilePath.readFromTar(FilePath.java:1662) 23:53:36 at hudson.FilePath.copyRecursiveTo(FilePath.java:1580) 23:53:36 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116) 23:53:36 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 23:53:36 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) 23:53:36 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) 23:53:36 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) 23:53:36 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 23:53:36 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) 23:53:36 at hudson.model.Run.run(Run.java:1401) 23:53:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 23:53:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:53:36 at hudson.model.Executor.run(Executor.java:230) 23:53:36 Caused by: java.io.IOException: There is not enough space on the disk 23:53:36 at java.io.FileOutputStream.writeBytes(Native Method) It would be useful if such an error could fail the build - this would stop other downstram builds from starting and causing multiple build failures. It would also make it easier to see where the original problem occurred. AttachmentsIssue Links duplicates JENKINS-2058 success even when arch
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Jenkins save artifact when build failed up vote 3 down vote favorite I want to Archive the artifacts of my program, but when the build failes he doesn't save the artifacts. Why is this? Because I only want to read the artifact when the job failed! Thanks for your response! -- Always when the job fails, I didn't get the artifact. I test it in very small jobs: Empty batch file + artifact a file, Result: Job Succesfull, Artifact: succesfull Exit 1 in batch file + artifact a file, Result: Job fails, Artifact: didn't do anything config.xml file of the job: