• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Platform: All, OS: All

      If your workspace contains some empty directories which match the archiver's
      include pattern, they will be copied to the archive area. This is likely not
      what you wanted - only files should be archived.

          [JENKINS-3227] Empty directories are archived

          Code changed in hudson
          User: : jglick
          Path:
          trunk/hudson/main/core/src/main/java/hudson/FilePath.java
          trunk/hudson/main/test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16026
          Log:
          [FIXED JENKINS-3227] Do not archive empty directories.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/main/core/src/main/java/hudson/FilePath.java trunk/hudson/main/test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://fisheye4.cenqua.com/changelog/hudson/?cs=16026 Log: [FIXED JENKINS-3227] Do not archive empty directories.

          Code changed in hudson
          User: : jglick
          Path:
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16027
          Log:
          JENKINS-3227 Noted.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=16027 Log: JENKINS-3227 Noted.

          svd added a comment -

          Sometimes it is needed to archive empty folders also.
          Is it possible to add an option which can control this behavior?

          svd added a comment - Sometimes it is needed to archive empty folders also. Is it possible to add an option which can control this behavior?

          Jesse Glick added a comment -

          Original bug was fixed so do not reopen. If you think an option to archive empty dirs is necessary, that would be a separate RFE with a link to this one.

          Jesse Glick added a comment - Original bug was fixed so do not reopen. If you think an option to archive empty dirs is necessary, that would be a separate RFE with a link to this one.

          Casey McGinty added a comment - - edited

          This should have never been fixed. Archiving empty dirs is a requirement. If you don't want an empty dir archived, then don't create one or delete it.

          Casey McGinty added a comment - - edited This should have never been fixed. Archiving empty dirs is a requirement. If you don't want an empty dir archived, then don't create one or delete it.

          Brock Jones added a comment -

          Agree that this was a bad fix. Archiving empty directories is not a bug. Excluding the archival of empty directories would be a valid feature addition, but making it the default behavior seems broken.

          Brock Jones added a comment - Agree that this was a bad fix. Archiving empty directories is not a bug. Excluding the archival of empty directories would be a valid feature addition, but making it the default behavior seems broken.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: