https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild

Features

The SonarScanner for MSBuild is the recommended way to launch a SonarQube or SonarCloud analysis for projects/solutions using MSBuild or dotnet command as build tool. It is the result of a collaboration between SonarSource and Microsoft.

SonarScanner for MSBuild is distributed as a standalone command line executable and as build steps for VSTS/TFS and a plugin for Jenkins.

It supports .Net Core multi-platform projects and it can be used on non-Windows platforms.

https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins

Features

This plugin lets you centralize the configuration of SonarQube server connection details in Jenkins global configuration.

Then you can trigger SonarQube analysis from Jenkins using standard Jenkins Build Steps to trigger analysis with:

  • SonarQube Scanner
  • SonarQube Scanner for Maven
  • SonarQube Scanner for MSBuild

Once the job is complete, the plugin will detect that a SonarQube analysis was made during the build and display a badge and a widget on the job page with a link to the SonarQube dashboard as well as quality gate status.

Use

Analyzing with the SonarQube Scanner

Global Configuration

This step is mandatory if you want to trigger any of your SonarQube analyses with the SonarQube Scanner. 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.

  1. Log into Jenkins as an administrator and go to Manage Jenkins > Global Tool Configuration
  2. Scroll down to the SonarQube Scanner configuration section and click on Add SonarQube Scanner. It is based on the typical Jenkins tool auto-installation. You can either choose to point to an already installed version of SonarQube Scanner (uncheck 'Install automatically') or tell Jenkins to grab the installer from a remote location (check 'Install automatically'):

如果配置了自动安装,但是没有立即进行,那么就按照下面的方式去立即执行

If
you don't see a drop down list with all available SonarQube Scanner
versions but instead see an empty text field then this is because
Jenkins still hasn't downloaded the required update center file (default
period is 1 day). You may force this refresh by clicking 'Check Now'
button in Manage Plugins > Advanced tab.

最新文章

  1. Fix catalyst driver in Ubuntu 13.04 / 13.10
  2. 几个Jquery对话框插件
  3. Cube Stacking
  4. PHP安全配置
  5. 用Android-X86和VirtualBox打造高性能Android开发环境
  6. 安装完出现Deprecated: Function ereg_replace() is deprecated in
  7. 转:你需要知道的NoSQL数据库10件事
  8. 插件化—配置xml的辅助测试
  9. LVS--什么是LVS?
  10. 2017多校第10场 HDU 6181 Two Paths 次短路
  11. asp.net session分布式共享解决方案
  12. WebApi系列(从.Net FrameWork 到 .Net Core)
  13. GPS/轨迹追踪、轨迹回放、围栏控制
  14. Spring基础(7) : Bean的名字
  15. docker swarm英文文档学习-7-在集群中管理节点
  16. Java基础-SSM之mybatis一对一关联
  17. 使用C#反射机制访问类的私有成员【转】
  18. 2018.07.17 HAOI2016 找相同字符(SAM)
  19. dpr 与 dproj 有什么区别
  20. ASP.NET之Jquery入门级别

热门文章

  1. [LUOGU] P3354 [IOI2005]Riv 河流
  2. <Redis> 入门一 概念安装
  3. Python 绑定方法与非绑定方法
  4. ubuntu 16.4 安装mysql-python
  5. 【BZOJ 1003】[ZJOI2006]物流运输(Dijkstra+DP)
  6. TCP传输的三次握手四次挥手策略
  7. JavaEE JDBC RowSet行集
  8. Jquery根据JSON生成Table
  9. 破损的键盘(codevs 4650)
  10. 【git】Git 提示fatal: remote origin already exists 错误解决办法