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

Download build artifacts as zip generates a corrupted file

    XMLWordPrintable

Details

    Description

      The zip generated by http://server/job/project/ws/*zip*/workspace.zip truncates at 20.62MB's and results in a corrupt zip archive.

      Attachments

        Issue Links

          Activity

            felfert Fritz Elfert added a comment -

            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

            felfert Fritz Elfert added a comment - 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
            felfert Fritz Elfert added a comment -

            The following PR should fix this:
            https://github.com/jenkinsci/jenkins/pull/2639

            felfert Fritz Elfert added a comment - The following PR should fix this: https://github.com/jenkinsci/jenkins/pull/2639
            chris_mh3 chris_mh3 added a comment - - edited

            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?

            JENKINS-39909

            chris_mh3 chris_mh3 added a comment - - edited 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? JENKINS-39909
            felfert Fritz Elfert added a comment -

            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.

            felfert Fritz Elfert added a comment - 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.
            victorqueiroz Victor added a comment - - edited

            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?

            Jenkins 2.289.3

            victorqueiroz Victor added a comment - - edited 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? Jenkins 2.289.3

            People

              Unassigned Unassigned
              snakedoc Jason Sipula
              Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: