-
Bug
-
Resolution: Unresolved
-
Minor
-
None
From time to time I have found it would be handy to be able to add an empty directory to the archive. eg. directory for log files.
I have noticed that this was deliberately disabled in JENKINS-3227 however it would be great if there was a configurable option to enable/disable archiving empty directories.
- is duplicated by
-
JENKINS-32846 copying empty directories
-
- Open
-
- is related to
-
JENKINS-3227 Empty directories are archived
-
- Resolved
-
For us, this is more than a "Minor" priority issue - it's causing the application that was written to expect the folder to be there to fail. I don't understand the logic behind why this was set to never allow you to copy empty directories. The build itself always has the ability to remove empty directories if they aren't desired before archiving. However, if you do desire empty directories in the artifacts, then with this change in, it is impossible to implement this. If, for example, we did not have the source code (vendor binary package), and we used Jenkins as our enterprise solution for "packaging", there would be no work-around. There is always a work-around for "deleting" unnecessary directories from a build, though - don't create them - delete in build script - added "batch command" build step - etc. I think this alone is enough to justify at least an option to include empty directories.