gpt4 book ai didi

git - 如何在 sonarqube 5.0 中使用 git 作为 scm 提供程序(使用 sonar-runner )

转载 作者:IT王子 更新时间:2023-10-29 01:01:25 24 4
gpt4 key购买 nike

我关注sonarqub的官方支持 http://docs.sonarqube.org/display/SONAR/SCM+support

我得到上面的错误。

是我漏掉了什么需要配置的东西,还是配置错了

08:46:33.723 INFO - Sensor SCM Sensor...
08:46:33.897 INFO - SCM provider for this project is: git
08:46:33.898 INFO - Retrieve SCM blame information...
08:46:33.915 INFO - 632 files to be analyzed
08:46:34.377 INFO - Author: PersonIdent[Not Committed Yet, , Tue Feb 3 08:46:34 2015 +0000]
08:46:34.379 INFO - Source commit: null
08:46:34.377 INFO - Author: PersonIdent[Not Committed Yet, , Tue Feb 3 08:46:34 2015 +0000]
08:46:34.924 INFO - Source commit: null
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 1:01.699s
08:46:35.891 INFO - Author: PersonIdent[Not Committed Yet, , Tue Feb 3 08:46:35 2015 +0000]
08:46:34.930 INFO - Author: PersonIdent[Not Committed Yet, , Tue Feb 3 08:46:34 2015 +0000]
08:46:35.930 INFO - Source commit: null
Final Memory: 27M/318M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Unable to blame file

非常感谢。

最佳答案

这是因为在运行分析时,SonarQube 期望所有文件都应该提交。

事实上,SonarQube 假设当您运行标准分析(将数据推送到服务器)时,项目的单个文件不应该有任何未提交的更改,因为这可能会推送不相关的信息使用存储库中的真实源代码。这就是分析会失败的原因。

运行预览分析时显然不是这种情况:由于这种分析不会将数据推送到服务器并且只在本地报告问题,因此有未提交的更改不是问题,因此分析不会失败.

我已经更新了 the documentation使这一点更清楚。

关于git - 如何在 sonarqube 5.0 中使用 git 作为 scm 提供程序(使用 sonar-runner ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28295261/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com