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

Add support for archiving empty directories in TarArchiver

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core

      Currently, the TarArchiver class does not correctly handle archiving empty directories. When an empty directory is encountered, it is skipped and not included in the resulting TAR archive. This feature request is to modify the TarArchiver class to ensure that empty directories are archived correctly.

          [JENKINS-73837] Add support for archiving empty directories in TarArchiver

          Jobin created issue -

          Jobin added a comment -

          Similar issue for zip

          Jobin added a comment - Similar issue for zip
          Jobin made changes -
          Link New: This issue is related to JENKINS-49296 [ JENKINS-49296 ]

          Basil Crow added a comment -

          I added automated tests in https://github.com/jenkinsci/jenkins/pull/9809 which should be a good starting point for anyone who wishes to provide a pull request to resolve this issue.

          Basil Crow added a comment - I added automated tests in https://github.com/jenkinsci/jenkins/pull/9809 which should be a good starting point for anyone who wishes to provide a pull request to resolve this issue.
          Basil Crow made changes -
          Labels Original: tar New: newbie-friendly
          Elton Alves made changes -
          Assignee Original: Jobin [ josejobin45 ] New: Elton Alves [ tonho ]

          Elton Alves added a comment - - edited

          Guys, how can I test it? I mean, locally! Is it possible?

          Elton Alves added a comment - - edited Guys, how can I test it? I mean, locally! Is it possible?
          Simeon made changes -
          Assignee Original: Elton Alves [ tonho ] New: Simeon [ dersimeon ]
          Simeon made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          tonho, dersimeon
          Sorry, colleagues, I didn't see that you started working on this task. I suggest reviewing my solution for participation in this task: https://github.com/jenkinsci/jenkins/pull/9871.

          In turn, I worked on this task for several days. I did not put the "Asignee" field on myself, since I think that this is a bad practice in open source products - my "Assignee" can scare off other participants, and I can miscalculate my strength and not finish the task - thus the task will forever remain with the "Assignee" label on me and will be unlikely to be done by me or other participants.

          Ilya Pyatizbyantsev added a comment - tonho , dersimeon Sorry, colleagues, I didn't see that you started working on this task. I suggest reviewing my solution for participation in this task: https://github.com/jenkinsci/jenkins/pull/9871 . In turn, I worked on this task for several days. I did not put the "Asignee" field on myself, since I think that this is a bad practice in open source products - my "Assignee" can scare off other participants, and I can miscalculate my strength and not finish the task - thus the task will forever remain with the "Assignee" label on me and will be unlikely to be done by me or other participants.

            Unassigned Unassigned
            josejobin45 Jobin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: