如何使用TeamCity的构建后部署? [英] How to deploy after a build with TeamCity?
问题描述
我设立的TeamCity作为我的生成服务器。
I'm setting up TeamCity as my build server.
我有我的项目设置,它是从颠覆正确更新,并建立ok了。
I have my project set up, it is updating correctly from subversion, and building ok.
那么下一步是什么?
在理想情况下,我想拥有它的自动部署到测试服务器,具有手动部署到现场/临时服务器。
Ideally, I'd like to have it auto deploy to a test server, with a manual deploy to a live/staging server.
什么是去了解这一点的最好方法是什么?
What's the best way to go about this?
由于我使用C#/ ASP.Net,我应该一个Web部署项目添加到我的解决方案?
Since I am using C#/ASP.Net, should I add a Web Deployment project to my solution?
推荐答案
本文介绍了如何调用从TeamCity的微软WebDeploy工具来部署Web应用程序到远程Web服务器。我一直在使用它来部署到测试Web服务器,并在办理入住手续运行Selenium测试。
This article explains how to call Microsoft's WebDeploy tool from TeamCity to deploy a web application to a remote web server. I've been using it to deploy to a test web server and run selenium tests on check-in.
的http://www.mikevalenty.com/automatic-deployment-from-teamcity-using-webdeploy/
- 安装WebDeploy
- 启用Web配置转换
- 配置TeamCity的BuildRunner
- 配置TeamCity的构建依赖关系
这是我的应用程序工作的MSBuild的论点:
The MSBuild arguments that worked for my application were:
/p:Configuration=QA
/p:OutputPath=bin
/p:DeployOnBuild=True
/p:DeployTarget=MSDeployPublish
/p:MsDeployServiceUrl=https://myserver:8172/msdeploy.axd
/p:username=myusername
/p:password=mypassword
/p:AllowUntrustedCertificate=True
/p:DeployIisAppPath=ci
/p:MSDeployPublishMethod=WMSVC
这篇关于如何使用TeamCity的构建后部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!