[英]How to deploy to multiple servers using TFS / MSBuild
We are trying to set up and configure a new build process. 我们正在尝试设置和配置新的构建过程。 Continuous integration using TFS and msbuild to deploy to different environments (Dev, Qa, Prod, etc) works like a charm. 使用TFS和msbuild进行持续集成以部署到不同的环境(Dev,Qa,Prod等)中,就像一个魅力。
The problem is that, for example, our QA env. 问题是,例如,我们的质量检查环境。 consists of multiple, load balanced, servers and I can't seem to figure out how to deploy to multiple servers at once. 由多个负载均衡的服务器组成,我似乎无法弄清楚如何一次部署到多个服务器。
I have a working Publish Profile: 我有一个有效的发布资料:
<Project ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>QA</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishUrl>*SERVER1*</PublishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>
and this gets executed when doing a check-in on our QA branch, and after building, it publishes the results to SERVER1. 并在我们的质量检查分支进行签入时执行,并在构建后将结果发布到SERVER1。 It should also publish the files to SERVER2, SERVER3, and so on. 它还应将文件发布到SERVER2,SERVER3等。
What is the best way to accomplish this? 做到这一点的最佳方法是什么? I also tried editing the workflow file, but found that rather unclear. 我也尝试编辑工作流程文件,但发现还不清楚。
正如Daniel和Cyril所建议的那样,我们将使用诸如章鱼之类的外部工具。
TFS 2013 includes a release management tool that is included with your MSDN subscription. TFS 2013包含一个发布管理工具,该工具随您的MSDN订阅一起提供。
http://nakedalm.com/blog/create-release-management-pipeline-professional-developers/ http://nakedalm.com/blog/create-release-management-pipeline-professional-developers/
It's fairly simple to get up and running and I would recommend using PowerShell to do the physical deployments. 设置和运行非常简单,我建议使用PowerShell进行物理部署。 RM worked well s am orchestration tool if you need traceability and approvals... 如果您需要可追溯性和批准,RM可以很好地用作编排工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.