TeamCity 部署构建输出

发布于 2024-08-09 15:59:34 字数 120 浏览 4 评论 0原文

我目前正在为我的项目设置 CI,并让 team city 配置并运行我的构建(和测试等)。然而,我似乎无法弄清楚如何让它实际将构建部署到我的网络服务器。如果有帮助的话,我正在使用 sln2008 跑步者。

谢谢

I'm currently setting up CI for my project and have team city configure and running my builds (and tests etc). However, what I can't seem to figure out is how to get it to actually deploy the build to my web-server. I'm using the sln2008 runner if that help.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

寒尘 2024-08-16 15:59:34

TeamCity 本身不支持任何部署。您可以从依赖构建中执行此操作,也可以将其作为主构建的一部分来执行。您可以观看/投票一个相关问题:TW-3746

TeamCity doesn't support any deployment by itself. You can do it from a dependent build or as a part of your main build. There is a related issue that you can Watch/Vote: TW-3746.

不美如何 2024-08-16 15:59:34

您可以配置 Web 部署步骤:

IIS 配置

TeamCity 配置

  • 添加新步骤:
  • “Runner type”字段选择“MSBuild”
  • “Build file path”字段输入 Web 项目的路径。例如:
  • SRC\MyWebSite\MyWebSite.csproj 字段“命令行参数”类型“/P:Configuration=%env.Configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://% env.TargetServer%/MsDeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WMSVC /P:UserName=WebDeploy /P:Password=WebDeploy /P:DeployIISAppPath= /P:CreatePackageOnPublish=True"
  • 保存。
  • 单击“构建参数”
  • 字段“env.Configuration”,输入用于编译解决方案的配置:“发布”或“调试”。
  • 字段“env.TargetServer”将执行 Web 部署的 IIS 服务器。例如:本地主机:8172。

运行您的构建配置。

You can configure a web deploy step:

IIS configuration

TeamCity configuration

  • Add a new step:
  • Field "Runner type" select "MSBuild"
  • Field "Build file path" type the path to the web project. eg.:SRC\MyWebSite\MyWebSite.csproj
  • Field "Command line parameteres" type "/P:Configuration=%env.Configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://%env.TargetServer%/MsDeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WMSVC /P:UserName=WebDeploy /P:Password=WebDeploy /P:DeployIISAppPath= /P:CreatePackageOnPublish=True"
  • Save it.
  • Click on "Build Parameters"
  • Field "env.Configuration" type the configuration you have used to compile solution: "Release" or "Debug".
  • Field "env.TargetServer" the IIS server where the web deploy will be performed. Eg.:localhost:8172.

Run your build configuration.

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