How to include empty folders when publishing artifacts?


Our build process creates an output structure that contains a few empty folders as well:

  • build
    • folder1
      • outputfile1.txt
    • folder2
    • folder3
      • outputfile2.txt

We would like to publish the complete structure as build artifacts (as dependent builds require the empty folders as well). For this we tried the following alternative "Artifact paths":

  1. build/**/*.*
  2. build

but neither of them included the empty folders. Is there any solution to this?


1 comment
Comment actions Permalink


So far, empty directtories are not included, please vote for/coment corresponding issue in our tracker.


Please sign in to leave a comment.