使用Jenkins/Hudson部署.NET [英] Deploying .NET with Jenkins/Hudson

查看:148
本文介绍了使用Jenkins/Hudson部署.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Jenkins /Hudson CI部署我的.NET网站项目.我一直在使用 MSbuild插件构建我的项目,然后xcopy将其复制到服务器.

I've been using Jenkins/Hudson CI for deploying my .NET web site project. I've been using the MSbuild plugin to build my project, and then xcopy to copy it out to the server.

如果使用 winmerge 比较显示了二进制文件不一样

I've noticed if I use the publish feature in Visual Studio I get a different set of files. I've got the config transforms working, but I end up with all the .cs files and a winmerge compare shows the binaries being different.

因此,我想让 Jenkins 像发布功能一样工作,或者确认xcopy部署在功能上是相同的.

So, I'd like to either get Jenkins working just like the publish feature, or confirm that an xcopy deploy is functionally the same thing.

推荐答案

我在使用 Web Deploy ,作为最后的构建步骤,Jenkins运行包含以下内容的bat文件:

I've had good experiences with using Web Deploy and as a final build step with Jenkins running a bat file containing:

msdeploy.exe -verb:sync -source:package=%PACKAGE% -dest:auto,ComputerName=%TARGETHOST%

您必须在构建服务器上安装Web部署软件包,并在IIS上安装扩展.

You'll have to install the web deploy package on your build server and the extention on IIS.

这篇关于使用Jenkins/Hudson部署.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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