Jenkins安装使用MSBuild插件

Jenkins MSBuild插件页面:https://plugins.jenkins.io/msbuild/

差别:使用插件与直接使用MSBuild。就目前观察来看:使用插件的话,控制台输出中,错误信息和警告有颜色显示

1.安装

首页 系统管理》插件管理》Available plugins

搜索:MSBuild

安装时勾选:重启Jenkins

 

2.配置MSBuild路径

首页 系统管理》全局工具配置 》MSBuild 安装

Name:随便命名

Path:注意这里要用VS对应的MSBuild版本,如VS2017对应的是15.0。我这里采用的VS2017安装时的版本,避免版本问题

 

 

3.验证

安装完成后,会在增加步骤时出现该选项【Build a Visual Studio project or solution using MSBuild】

 

参考:https://www.cnblogs.com/yan0720/p/11936799.html

posted @ 2023-10-23 17:28  泥称  阅读(143)  评论(0编辑  收藏  举报