[英]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
发布配置文件发布它。
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.5和VS2008时,我们使用bat文件直接运行webdeploy命令。
Hope it helps, 希望能帮助到你,
Ivan 伊万
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.