简体   繁体   中英

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.

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. It should also publish the files to SERVER2, SERVER3, and so on.

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.

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. RM worked well s am orchestration tool if you need traceability and approvals...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM