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

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

问题描述

我已经为WCF项目设置了持续集成,并希望使用MSBuild Arguments自动将应用程序部署到远程服务器,但没有部署。



运行一个新的构建所有的测试通过和所有的项目构建,但网站没有部署。此外,我从构建中得到没有错误,说任何事情都出错了。



我已经在远程服务器上打开了端口8172,以确保连接可以IIS,甚至禁用了防火墙。



在构建配置中,我指定了以下参数;

  / p:DeployOnBuild = True / p:DeployTarget = MsDeployPublish / p:DeployIisAppPath =默认网站/ 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



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



任何人都可以看到我的MS构建参数的问题?我没有任何东西吗?



任何帮助将非常感谢



更新:



我已经检查了构建服务器,以检查MS部署是否已安装,并已安装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:Pass word = password



MSBuild正在成功构建项目,但没有考虑部署它。



任何想法?

解决方案

解决这个问题的答案中,构建服务器上缺少文件的问题: p>

类似的问题



此外,当使用Web Platform安装程序安装Web Deploy 3.0时,不需要安装所有需要的功能,以便通过MSBuild命令行远程连接到IIS。



我将nessesery文件从我的开发机器复制到构建服务器,并手动安装了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天全站免登陆