Extract, zip and publish TFS source-controlled items to FTP server
I want to publish nightly builds + source code of a specific project on a tfs 2010 server (local network, inside the firewall) to a (local network, in the dmz) ftp server.
- Build
- Get latest version
- Zip build and code
- Copy to ftp server
Co开发者_JAVA技巧pying the files can use ftp protocol or copy to network share.
Can I do this easily with team-build, or do I need extra tools?
You can do this pretty easily using Team Foundation Build. There are even zip and ftp Activities that ship with VS and are ready to use.
If you want a tool to make it easyer then I would recommend Final Builder. This tool inegrates into Team Foundation Build with an Activity that runs after Build and Test that you can do pretty much anything in. It has FTP and Zip Activities ready for dragging and dropping.
If you have a more complicated as we had, like synchronize/cleanup a remote site via FTP, you can easily create your custom CodeActivity and do FTP via WebClient
directly in C# code.
精彩评论