我需要 Jenkins 的声纳和声纳转轮吗? [英] Do I need sonar and sonar runner for Jenkins?

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

问题描述

我想和 Jenkins 一起设置声纳.但我不确定 Sonar 站点 描述执行此操作的两种不同方法,或者如果有两个必要步骤:

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 runner 之间)有什么区别和优缺点?

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 Scanner(适用于大多数项目)

  • 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 Scanner 上有更详细的描述对于 Jenkins 文档页面.

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

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