简体   繁体   English

如何使用TFS / MSBuild部署到多台服务器

[英]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.

相关问题 带有TFS的MSBuild在具有多个项目的ASP.NET部署上失败 - MSBuild with TFS Fails on ASP.NET deploy with multiple projects 如何将同一应用程序部署到多个服务器 - How to deploy the same application to multiple servers 如何将asp.net WebApp部署到多个服务器? - How to deploy an asp.net webApp to multiple servers? 如何配置TFS以构建和部署多个Web应用程序? - How can I configure TFS to build and deploy multiple web applications? 如何在Visual Studio 2015中使用MSBuild在构建上部署ASP.NET MVC应用程序? - How to deploy an ASP.NET MVC application on build using MSBuild in Visual Studio 2015? 如何使用Amazon Elastic Beanstalk加密web.config节并部署到多台服务器 - How to encrypt web.config section AND deploy to multiple servers with Amazon Elastic Beanstalk 我的两个TFS服务器之一缺少msbuild文件夹中的VisualStudio工具。 需要帮助来找到安装它们所需的软件包 - One of my two TFS servers is missing VisualStudio tools in msbuild folder. Need help locating the package required to install them 如何在不使用不同端口的情况下将多个服务器作为一个运行? - How to run Multiple Servers as one without using different ports for each? 如何使用TFS 2010自动部署Web应用程序? - How do I auto-deploy a web application using TFS 2010? 如何在Prime上使用TFS 2015.Update3.RC1 CI设置和部署.net Web应用程序构建 - How to Setup and Deploy a .net web app Build Using TFS 2015.Update3.RC1 CI on Prim
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM