TFS 2010 - 构建后部署到多个服务器
我已将 TFS 2010 配置为进行构建并利用 MSBuild 参数,将其部署到单个服务器,没有任何问题。
/p:DeployOnBuild=True
/p:Configuration=Development
/p:DeployTarget=MSDeployPublish
/p:MSDeployPublishMethod=RemoteAgent
/p:MsDeployServiceUrl=http://<insert>/msdeployagentservice
/p:username=<insert>
/p:password=<insert>
然而,我现在想在构建后部署到多台机器上。我不确定是否有一些内置机制可以执行此操作,或者我应该调用一个进程来启动一个批处理文件来执行此部署,然后进行同步?我希望保持一切整洁。
例如,我可以有两个构建定义,每个服务器一个,但这看起来很愚蠢。我希望能够一次性构建两台服务器,而无需进行太多外部自定义。
I've configured TFS 2010 to do a build and utilizing the MSBuild arguments, have it deploying to a single server without any issues.
/p:DeployOnBuild=True
/p:Configuration=Development
/p:DeployTarget=MSDeployPublish
/p:MSDeployPublishMethod=RemoteAgent
/p:MsDeployServiceUrl=http://<insert>/msdeployagentservice
/p:username=<insert>
/p:password=<insert>
However, I am now to the point where I'd like to deploy to multiple machines after a build. I wasn't sure if there were some built in mechanisms for doing this, or should I invoke a process to launch a batch file that does this deployment followed by a sync? I was hoping to keep things neat and tidy.
E.g., I could have two build definitions, one for each server, but that seems silly. I was hoping to just build to both servers in one fail swoop without too many outside customizations.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 TFS 2010 开始,您可以使用构建定义模板自定义构建过程,这是配置构建过程的更丰富的方式。您不使用此功能有什么具体原因吗?
As of TFS 2010 you can customize your build process using the build definition template, this is a much richer way of configuring your build process. Is there a specific reason why you're not using this?