在Jenkins中集成Sonarqube
Analyzing with SonarQube Scanner for MSBuild
Global Configuration
This step is mandatory if you want to trigger any of your analyses with the SonarQube Scanner for MSBuild. You can define as many scanner instances as you wish. Then for each Jenkins job, you will be able to choose with which launcher to use to run the SonarQube analysis.
-
Log into Jenkins as an administrator and go to Manage Jenkins > Global Tool Configuration
-
Click on Add SonarQube Scanner for MSBuild
-
Add an installation of the latest available version. Check Install automatically to have the SonarQube Scanner for MSBuild automatically provisioned on your Jenkins executors
If you do not see any available version under Install from GitHub, first go to Manage Jenkins > Manage Plugins > Advanced and click on Check now
Job Configuration
- Configure the project, and scroll down to the Build section.
- Add both the SonarQube for MSBuild - Begin Analysis and SonarQube for MSBuild - End Analysis build steps to your build
- Configure the SonarQube Project Key, Name and Version in the SonarQube Scanner for MSBuild - Begin Analysis build step
-
Use the MSBuild build step or the Execute Windows batch command to execute the build with MSBuild 14 (see compatibility) between the Begin Analysis and End Analysis steps.
相关文章
- Docker+Jenkins持续集成环境(2)使用docker+jenkins构建nodejs前端项目
- docker + jenkins + flask 部署,持续化集成
- Jenkins - 集成SonarQube
- jenkins 持续集成和交付——安装与账户安全还有凭证(二)
- jenkins+maven+git+ 邮件自动转发 持续化集成 图文教程
- jenkins 持续集成和交付 —— 邮箱服务器配置(九)
- jenkins 持续集成和交付 —— 参数化构建(八)
- jenkins 持续集成和交付 —— git hook(七)
- jenkins 持续集成和交付——gogs安装(外篇)
- win10安装jenkins报错Service jenkins failed to start verify that you have sufficient privileges to start system services解决办法
- Jenkins:用maven在本地打包部署一个github的springboot项目(Jenkins 2.257)
- 使用阿里云容器服务Jenkins实现持续集成和Docker镜像构建(updated on 2017.3.3)
- jenkins pipeline 常用句式
- 【K8S】基于Docker+K8S+GitLab/SVN+Jenkins+Harbor搭建持续集成交付环境(环境搭建篇)
- 持续集成环境Jenkins的搭建和使用
- JENKINS持续集成性能测试环境搭建及使用
- 2023你还在问持续集成怎么搞?Jenkins+Docker+Git实战(建议收藏)
- 基于CentOS7系统虚拟机部署Jenkins环境
- Docker安装Jenkins
- Jenkins多环境持续集成架构实践