简体   繁体   English

什么Jenkins插件可用于.NET网站部署?

[英]What Jenkins plugin can be used for .NET web site deployment?

We use: - SVN - Jenkins - MS Build plugin 我们使用: - SVN - Jenkins - MS Build插件

We have several Web Form/MVC/Web services. 我们有几个Web Form / MVC / Web服务。

We are going to setup Microsoft Web Deploy and run bat file from Jenkins. 我们将设置Microsoft Web Deploy并从Jenkins运行bat文件。

Maybe someone can suggest better way to do that or this looks like most effective solution? 也许有人可以提出更好的方法,或者这看起来像最有效的解决方案?

Thank you in advance. 先感谢您。

WebDeploy is definetly the right way to deploy web applications. WebDeploy绝对是部署Web应用程序的正确方法。

Staring from VS2010 targets for running web deploy in simple scenarious are "built-in" into the project files(and msbuild extension files on the PC). VS2010开始 ,以简单的方式运行Web部署的目标是“内置”到项目文件中(以及PC上的msbuild扩展文件)。 Starting from VS2012 you can also use Publish Profiles feature which allows storing publish details in a simple file. VS2012开始,您还可以使用“ 发布配置文件”功能,该功能允许将发布详细信息存储在一个简单文件中。 Eg you can run something like that: 例如,你可以运行这样的东西:

msbuild MyProject.csproj /p:DeployOnBuild=true /p:PublishProfile=<profile-name> /p:Password=<insert-password> /p:VisualStudioVersion=11.0

Which will build the app and publish it using the profile-name publish profile. 这将构建应用程序并使用profile-name发布配置文件发布它。

  • Have a look at this article's "Creating a Publish Profile" section to know more about creating Publish profiles. 看看这个文章的“创建发布配置文件”部分以了解更多有关创建发布配置文件。
  • Have a look at this post by Sayed Ibrahim Hashimi for reference on publish automation with VS 2012. 看看Sayed Ibrahim Hashimi的这篇文章 ,了解VS 2012的发布自动化。
  • There's also a good series of blog posts on automating deployments with TeamCity by Troy Hunt (he uses vs2010, so this might be helpful if you are using VS2010) 还有很多关于Troy Hunt使用TeamCity自动部署的博客文章 (他使用的是vs2010,所以如果你使用的是VS2010,这可能会有所帮助)

We were using bat files to run webdeploy commands directly when we were restricted to .NET 3.5 and VS2008 which didn't have project files web deploy integration. 当我们被限制在没有项目文件web部署集成的.NET 3.5VS2008时,我们使用bat文件直接运行webdeploy命令。

Hope it helps, 希望能帮助到你,

Ivan 伊万

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM