I am looking for suggestions on the best way to implement for
the following scenario. I have a Team Foundation Build Server that
performs automated builds of our software on check-in of code. These
builds are stored in a folder with the msi and any supporting files.
So I will have a structure similar to the following:
D:\Builds
\MyProjectInstaller_04192012.1
\MyProjectInstaller_04192012.2
\AnotherProjectInstaller_04172012.1
\MyInstaller_04162012.1
When a new sub-folder, such as MyProjectInstaller_04192012.1, is
created in D:\Builds I need to zip the sub-folder and all of it's
contents. The trick is that the sub-folder is created and then the
files are added as a part of the build which could take several
minutes to complete. This means I need to know when a sub-folder is
created but not zip and copy the contents until I know that the build
is finished and no more files are going to be added. To complicate
matters it is possible that a build could be going for
MyProjectInstaller and AnotherProjectInstaller either simultaneously
or they might overlap. Each sub-folder must be contained in its
own zip file.
Any help is appreciated.