我是否需要Jenkins的声纳和声纳追踪器? [英] Do I need sonar and sonar runner for Jenkins?

查看:137
本文介绍了我是否需要Jenkins的声纳和声纳追踪器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想和詹金斯建立声纳.但是我不确定声纳站点描述了执行此操作的两种不同方法,或者有两个必要步骤:

I want to set up Sonar with Jenkins. But I'm not sure if the Sonar site describes two different ways to do this or if there are two necessary steps:

据我了解,这是两种不同的方式.如果是这样,Sonar本身和Sonar跑步者之间有什么区别以及优点和缺点是什么?

As far as I understood it, it's two different ways. If this is the case, what is the difference and what are the advantages and disadvantages (between the Sonar itself and Sonar runner)?

推荐答案

如果要使用SonarQube和Jenkins分析项目,则需要满足以下条件:

If you want to analyse a project with SonarQube and Jenkins, here's what you need:

  • 已启动并正在运行的SonarQube服务器

  • A SonarQube server up and running

已安装并运行SonarQube Scanner for Jenkins的Jenkins服务器并配置为指向您的SonarQube服务器

A Jenkins server up and running with the SonarQube Scanner for Jenkins installed and configure to point to your SonarQube server

配置为在您的项目上运行SonarQube分析的作业:

A job configured to run a SonarQube analysis on your project:

  • 使用默认和标准的SonarQube扫描仪(适用于大多数项目)

  • Using the default and standard SonarQube Scanner (suitable for most projects)

将SonarQube扫描仪用于MSBuild(用于.NET解决方案)

Using the SonarQube Scanner for MSBuild (for .NET solutions)

对基于Maven的项目使用后期构建操作

Using a post build action for Maven-based projects

有关所有内容的详细说明,请参见 SonarQube扫描仪Jenkins文档页面.

Everything is described more in details on the SonarQube Scanner for Jenkins documentation page.

这篇关于我是否需要Jenkins的声纳和声纳追踪器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆