在TFS 2012中使用持续集成进行自动部署 [英] Auto Deploy using Continuous Integration in TFS 2012

查看:240
本文介绍了在TFS 2012中使用持续集成进行自动部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已为WCF项目设置了持续集成,并希望使用MSBuild参数将应用程序自动部署到远程服务器,但不会进行部署。



运行新的构建所有测试通过和所有项目构建,但网站未部署。



我已经打开了远程服务器上的端口8172,以确保可以连接到远程服务器



在Build配置中,我指定了以下参数:

  / p:DeployOnBuild = True / p:DeployTarget = MsDeployPublish / p:DeployIisAppPath =Default Web Site / MYSite/p:MsDeployServiceUrl=http://mysite.com / p:username = MySite \Administrator / p:password = thePassword 

我从以下示例编译了此配置:



http://vishaljoshi.blogspot.co.uk/2010/11/team-build-web-deployment-web-deploy-vs.html



http://www.chrissurfleet.co。 uk / post / 2011/07/21 / Setting-Up-Continuous-Deployment-In-TFS.aspx



我已将服务器的IIS配置为启用远程连接,我可以从构建服务器远程管理IIS。我还使用Visual Studio 2012发布选项成功部署了应用程序。



任何人都可以看到我的MS建立参数的问题?


$ b

任何帮助将非常感激。





我已检查构建服务器以检查MS deploy是否已安装并已安装Web Deploy 3.0以确保这是capabale,但尚未解决我的问题。



我已经检查IIS连接日志,以查看是否正在进行到IIS的远程连接,并且没有从我的构建服务器到应用程序服务器的连接。



我已经尝试运行MSBuild.exe的解决方案和项目的构建服务器手动与以下:



MSBuild.exe项目位置/ p:DeployOnBuild = True / p:DeployTarget = MsDeployPublish / p:MSDeployPublishMethod = WMSVC / p:DeployIisAppPath =Default Web Site / app/p:MsDeployServiceUrl=http://appserver:8172/MSDeploy.axd / p:AllowUntrustedCertificate = True / p:CreatePackageOnPublish = False / p:Username = username / p:Password = password



MSBuild正在成功构建项目,

解决方案

结束问题是文件丢失在构建服务器上作为解决此问题的答案:



类似问题



此外,当使用Web Platform安装程序安装Web Deploy 3.0时,必须安装以便通过MSBuild命令行远程连接到IIS。



我将nessesery文件从我的dev机器复制到构建服务器,并手动安装Web Deploy 3.0所有功能现在可以使用!



也许TFS 2012有一个错误???


I have setup continuous integration for a WCF project and want to use the MSBuild Arguments to automatically deploy the application to a remote server but it is not deploying.

When running a new Build all the Tests pass and all the projects build but the website is not being deployed. Also, I am getting no errors back from the build to say anything has gone wrong.

I have opened up port 8172 on the remote server to ensure connections can be made to IIS and have even disabled the firewall.

In the Build Configuration I have specified the following arguments;

/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:DeployIisAppPath="Default Web Site/MYSite" /p:MsDeployServiceUrl=http://mysite.com /p:username=MySite\Administrator /p:password=thePassword

I compiled this configuration from the following examples:

http://vishaljoshi.blogspot.co.uk/2010/11/team-build-web-deployment-web-deploy-vs.html

http://www.chrissurfleet.co.uk/post/2011/07/21/Setting-Up-Continuous-Deployment-In-TFS.aspx

I have configured the Server's IIS to enable remote connections and I can Remotely administer IIS from the build server. Also I have successfully deployed the Application using Visual Studio 2012 Publish option.

can anyone see a problem with my MS Build Arguments? Am I missing anything?

Any help would be very grateful

Update:

I have checked the build server to check MS deploy is installed and have installed Web Deploy 3.0 to ensure this is capabale, but has not solved my problem.

I have check the IIS connection logs to see if the remote connection to IIS is being made and there is no connection being made from my build server to the app server.

I have tried running MSBuild.exe for the solution and project on the build server manually with the following:

MSBuild.exe "Project Location" /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:MSDeployPublishMethod=WMSVC /p:DeployIisAppPath="Default Web Site/app" /p:MsDeployServiceUrl=http://appserver:8172/MSDeploy.axd /p:AllowUntrustedCertificate=True /p:CreatePackageOnPublish=False /p:Username=username /p:Password=password

The MSBuild is successfully building the project but is making no attemp to deploy it.

Any Ideas?

解决方案

Turns out the problem was files were missing on the Build Server as desibried in the Answer to this question:

Similiar problem

Also when installing Web Deploy 3.0 using Web Platform installer not all the features required are installed in order to connect remotely to IIS through MSBuild command line.

I copied the nessesery files from my dev machine to the build server and installed Web Deploy 3.0 manually with all features and this now works!

Maybe there is a bug with TFS 2012???

这篇关于在TFS 2012中使用持续集成进行自动部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆