Status: Open (View Workflow)
Jenkins 1.598 on CentOS 6.x / tomcat6
The zip generated by http://server/job/project/ws/*zip*/workspace.zip truncates at 20.62MB's and results in a corrupt zip archive.
- is related to
JENKINS-19752 Download build artifacts as zip generates a corrupted file
JENKINS-19947 Missing base directory in ZIP from .../artifact/dir/subdir/*zip*/subdir.zip
- links to
The following PR should fix this:
I would be very surprised if this would fix Srinivasan Venkataraman's and my problem. In my case it's not with zip files at all.
Should I open a new issue for this?
Well thats a little confusing. After all, the title specifically names zip artifacts. So: yes, I'd suggest a separate issue if it is not about zipped artifacts. Of course thats MY personal opinion only.
I have a similar problem. But it only happens when using the REST API in a job that results in 3 runs. The 2nd run is the one which gets the ZIP file truncated at 75 MB, the actual file size is 99 MB. The file is downloaded immediately after we check the run "result" is "SUCCESS" (not the build). Maybe it's related?
Guys I bet this is just another broken symlink to be archived. There's a VERY SIMPLE workaround:
Just remove symlinks (If the point outside the archived tree, they would be useless anyway)
I use the following one-liner in my builds and never had ANY problems with zipped artifacts anymore:
find /dir/to/artifacts -type l | xargs rm -f