【问题标题】:Running SonarQube scanner sonar-web-frontend IlligalStateException运行 SonarQube 扫描仪 sonar-web-frontend IlligalStateException
【发布时间】:2023-03-21 11:26:01
【问题描述】:

我正在使用命令行中的 sonar-web-frontend-plugin 运行 SonarScanner,它会拾取文件并运行,然后我得到一个执行失败

ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Report processing did not complete successfully
: FAILED

My sonar-project.properties look like this

# must be unique in a given SonarQube instance
sonar.projectKey=Test.UI
# this is the name displayed in the SonarQube UI
sonar.projectName=Test.UI
sonar.projectVersion=1.0

# Comma-separated paths to directories with sources (required)
sonar.sources=src/app

# exclude some files and folders (typically dependencies)
sonar.exclusions=bower_components/**/*, node_modules/**/*

# Encoding of the source files
sonar.sourceEncoding=UTF-8

【问题讨论】:

    标签: sonarqube sonar-runner sonarqube-scan


    【解决方案1】:

    您的 SonarQube 实例上安装了 Build Breaker 插件。

    您的项目未通过质量关卡。

    Build Breaker 插件完成了它的工作,并“破坏”了您的构建(返回了不成功的状态代码)。

    【讨论】:

    • 谢谢,有道理,但它不会在 ui 上发布结果,我需要为此指定命令吗?
    • @Jeepers 如果您使用最新版本的github.com/SonarQubeCommunity/sonar-build-breaker,则应根据其描述发布结果。如果没有,请指定您使用的内容,即您使用的插件及其版本。请注意,SonarQube 开发人员不建议破坏构建 - sonarqube.org/why-you-shouldnt-use-build-breaker
    • 事实上@Godin 我认为 Build Breaker 插件的每个版本都发布了结果。它不能因 QG 失败而中断构建除非结果已发布。
    • G. Ann-我运行分析的项目的仪表板上没有显示任何内容。即使项目已创建。在项目管理下,它说“自创建以来未执行任何分析。唯一可用的部分是配置”,当我检查它的日志时,它显示分析报告已创建并且我可以看到它,为什么没有为此发布任何内容,我在 ui 上什么都看不到?
    • 服务器日志说什么?
    【解决方案2】:

    好像是因为我还安装了默认的 JS 规则,它们不能并存。

    【讨论】:

      猜你喜欢
      • 2018-03-30
      • 2019-07-11
      • 2017-03-15
      • 1970-01-01
      • 2017-03-24
      • 2017-02-12
      • 2018-08-01
      • 1970-01-01
      • 2017-02-20
      相关资源
      最近更新 更多