How to configure Hudson to archive empty folders

I have the following example / test configuration where Hudson created a directory of empty folders. It is then instructed to archive everything in that folder, except that it will not match empty folders and will not archive anything. What's even more annoying is that Hudson doesn't warn you that nothing matches the "root **" search string, but on build it says nothing matches the search string.

alt text
(source: 86th.org )

We want Hudson to zip these empty folders for our installer as he expects them. I'm afraid this might not be possible due to the "Files to archive" text.

Anyway, How can I configure Hudson to archive empty folders as an artifact.

+2


source to share


3 answers


Looking at Hudson's source code , it looks like the archiving artifact is only for file matching.



You might want to write a feature request or send an email to the USERS list , the Hudson team responds pretty well to requests and / or adds new features in new releases.

+2


source


You have to build the artifact you want in your build scripts and then create a hudson file for that file. So if you need a zip file containing empty folders, run the appripriate zip command in your batch file or ant script. Then zip the output file.



+3


source


I see three ways:

  • Your application does NOT expect folders, but create them on demand.

  • or when creating a folder app on startup.

  • or you can just add dummy files to folders :) just thinking out of the box.

+1


source







All Articles