Jenkins部署.net自动化构建

Jenkins部署.net自动化构建

1、要使用Jenkins,首先需要保证系统中已经安装了jdk

下载并安装


安装插件选择"自己选择",不要选择推荐,并选择安装如下插件

MSBuild Plugin
Subversion Plug-in

配置登录账号权限









配置MSBuild





新建任务







/m  简历.sln /t:Rebuild /p:Configuration=Release /p:AllowUntrustedCertificate=True /p:password=qw2016 /p:DeployOnBuild=true;PublishProfile=CustomProfile /p:TargetFrameworkVersion=v4.5

SVN项目目录结构:
解决方案结构:




设置Jenkins服务启动权限:



构建:





生产上的配置文件由于发布就会补覆盖掉,因此我们执行一个批处理来重新拉取配置文件


cmd /c call "D:\xx\bin\Debug\CMD批处理\win.bat"

win.bat:
D:\xx\bin\Debug\Life.Win.exe  -App Jenkins
 



注意:Jenkins所在服务器,安装 一个与开发版本一样的VisualStudio,此处使用VS2017,Win10操作系统

猜你喜欢

转载自blog.csdn.net/xiaoxionglove/article/details/79594983