TFS 2010 - 构建后部署到多个服务器

发布于 2024-09-05 14:16:34 字数 495 浏览 7 评论 0原文

我已将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

套路撩心 2024-09-12 14:16:34

从 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文