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

Allow archiving of empty directories to be enabled/disabled

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            oryan_dunn Ryan D. added a comment -

            Honestly, this seems like it should be flagged a bug, and not an improvement.

            oryan_dunn Ryan D. added a comment - Honestly, this seems like it should be flagged a bug, and not an improvement.
            har Alois Hartl added a comment -

            It es a bug created by the following issue: https://issues.jenkins-ci.org/browse/JENKINS-3227 

            Before the issue was resolved empty directories were archived.

            har Alois Hartl added a comment - It es a bug created by the following issue:  https://issues.jenkins-ci.org/browse/JENKINS-3227   Before the issue was resolved empty directories were archived.

            It's surely a bug introduced by inadequate "fix". Directory structure is the same kind of artifact as anything else, you should be able to archive whatever you want. In my case I have specific directory structure which is filled up based on several other jobs artifacts. After all automatic processes prepare delivery content we just fill up a few documents and HW test measurements done by hand and should be able to release that. The problem is that we either have to create a few empty directories (delivery won't pass with missing directories in structure) or remove placeholders created to let Jenkins archive those empty directories. You have powerful automation and yet you can't automate creating a few empty directories.

            So yes, it's a bug. It does not behave as you would expect it to do and it took me too much time to discover that those directories are properly moved but not archived. Not even a log message telling that this thing won't be archived. I thought I messed up something and removed empty directories during delivery preparations. Great way of wasting time.

            bonaducci Maciej Załucki added a comment - It's surely a bug introduced by inadequate "fix". Directory structure is the same kind of artifact as anything else, you should be able to archive whatever you want. In my case I have specific directory structure which is filled up based on several other jobs artifacts. After all automatic processes prepare delivery content we just fill up a few documents and HW test measurements done by hand and should be able to release that. The problem is that we either have to create a few empty directories (delivery won't pass with missing directories in structure) or remove placeholders created to let Jenkins archive those empty directories. You have powerful automation and yet you can't automate creating a few empty directories. So yes, it's a bug. It does not behave as you would expect it to do and it took me too much time to discover that those directories are properly moved but not archived. Not even a log message telling that this thing won't be archived. I thought I messed up something and removed empty directories during delivery preparations. Great way of wasting time.

            I'd like to emphasize that fix for JENKINS-3227 changed default behavior without any notiece, it should be added as an option back then. Now this ticket lays down for 7 years and default behavior is not what you would usually expect, on the other hand you can't just change current default which was used for 7 years since that feral fix. Currently most reasonable option is to add visible checkbox to let is archive empty directories. Don't move it to advanced, make it visible so new user knows right away that it does not archive everything.

            bonaducci Maciej Załucki added a comment - I'd like to emphasize that fix for  JENKINS-3227  changed default behavior without any notiece, it should be added as an option back then. Now this ticket lays down for 7 years and default behavior is not what you would usually expect, on the other hand you can't just change current default which was used for 7 years since that feral fix. Currently most reasonable option is to add visible checkbox to let is archive empty directories. Don't move it to advanced, make it visible so new user knows right away that it does not archive everything.
            bram_mertens Bram Mertens added a comment -

            Another year passed.
            Please add this option.

            bram_mertens Bram Mertens added a comment - Another year passed. Please add this option.

            People

              Unassigned Unassigned
              michaelford Michael Ford
              Votes:
              19 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated: