When I change the quality of a build in TFS 2010 (to production quality), I would like to have the build uploaded to my FTP site on a remote server.
Are there any tools you know of that can accomplish this? If not, any suggestions on how I can do this myself?
If you want to automate this you probably need to use the notification system in TFS. You would need to build a web service that receives the notification from TFS and then have that web service do the FTP upload or make it queue a new build that would do the FTP upload. I would probably go for the second alternative so I could easily do the upload manually if needed.
You can read more about the event service here:
TFSDeployer might be useful, the build quality change event triggers the execution of a configured powershell script depending on the build quality.
You could use Powershell in a post-build step: What’s the best way to automate secure FTP in PowerShell?
来源:https://stackoverflow.com/questions/1960388/publish-to-ftp-after-tfs-2010-build-quality-change