【问题标题】:How do I user Jenkins warnings-ng-plugin - SonarQube Analysis?如何使用 Jenkins 警告-ng-plugin - SonarQube 分析?
【发布时间】:2019-06-06 02:53:22
【问题描述】:

我刚刚安装了"Jenkins Warnings Next Generation Plugin",想知道如何使用那里的“SonarQube”静态分析工具。

我发现它会解析“sonar-report.json”的结果,但我不知道这些文件是如何生成的。

查看 SonarQube 文档我才发现,“sonar-report.json”是使用自 SonarQube 6.6 起已弃用的“预览模式”生成的

有没有人知道如何使用当时最新的 SonarQube (7.4+) 生成此文件,或者 SonarQube 的警告插件没用?

谢谢

【问题讨论】:

    标签: jenkins sonarqube jenkins-plugins jenkins-pipeline sonarqube-scan


    【解决方案1】:

    正如SonarSource Community 中提到的,可以使用生成sonar-report.json

    sonar-scanner -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json
    

    尽管如此,此参数已被标记为已弃用,不应再使用

    WARN: The use of the issues mode (sonar.analysis.mode=issues) is deprecated. This mode will be dropped in the future.
    

    【讨论】:

      猜你喜欢
      • 2017-02-06
      • 2020-11-03
      • 1970-01-01
      • 1970-01-01
      • 2016-01-27
      • 2015-08-14
      • 2021-12-21
      • 2017-03-08
      • 1970-01-01
      相关资源
      最近更新 更多