代码之家  ›  专栏  ›  技术社区  ›  bdetweiler

Jenkins Sonar插件如何与SonarQube集成?

  •  0
  • bdetweiler  · 技术社区  · 7 年前

    我试图理解Jenkins Sonar插件和SonarQube的总体架构和流程。

    当我运行Jenkins Sonar插件时,插件是否在进行分析,然后将报告发送给SonarQube?或者插件是否将代码转发给SonarQube,以便在SonarQube服务器上进行分析?

    FindBugs如何集成到这个过程中?

    最近几周,我们的bug和代码气味报告已经被打破(显示为0),我正试图更好地了解一般的系统流程,以便我知道我应该把精力集中在哪里。

    2 回复  |  直到 7 年前
        1
  •  2
  •   B-Wieg    7 年前

    SonarQube 地点:

    3. The Continuous Integration Server triggers an automatic build, and the execution of the SonarQube Scanner required to run the SonarQube analysis.
    4. The analysis report is sent to the SonarQube Server for processing.
    5. SonarQube Server processes and stores the analysis report results in the SonarQube Database, and displays the results in the UI.
    

    至于Findbugs,我的理解是,您将不再真正需要使用Findbugs。但如果你想的话你可以。我猜SQ并没有实现FindBugs的100%,但是应该有最常见的规则。如果/当我实现SonarQube时,我将不再使用checkstlye/findbugs。如果所有开发人员都安装SonarLint,并且您将IDE配置为从SonarQube项目设置中读取,那么每个人都将遵循相同的规则集,而不是依赖开发人员使用相同的checkstyle/findbugs设置进行配置。

        2
  •  0
  •   user_9090    7 年前

    在声纳中,通常使用声纳扫描器对代码进行扫描,并将扫描结果/报告发送到声纳服务器上显示。

    当你在詹金斯使用声纳插件时,你必须设置声纳扫描器的路径或者你必须自动安装它( )

    enter image description here

    为了 您可以在sonarqube服务器上安装该插件,并将其设置为分析的默认值。