Jenkins安装使用MSBuild插件

发布时间 2023-10-23 17:33:04作者: 泥称

Jenkins MSBuild插件页面:https://plugins.jenkins.io/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