报这个错误:
INFO: 75 files indexed
INFO: Quality profile for go: Sonar way
INFO: ------------- Run sensors on module paasGoTest
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor SonarGo [go]
WARN: Metric 'comment_lines_data' is deprecated. Provided value is ignored.
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succedeed?
ERROR: SonarQube scanner exited with non-zero code: 137
Finished: FAILURE
1.要么就是sonar es 或者ce进程内存不足
2.Jenkins slave 内存不足,sonarScanner 运行不起来
运行sonarScanner 的slave 至少要2-4G内存,一般设置4G. es 至少需要4-6G内存,ce至少需要4G内存。
本文探讨了SonarQube扫描过程中遇到的错误,包括过时指标警告、报告文件缺失及非零退出代码的问题。分析指出,这些错误可能由内存资源不足引起,建议检查SonarQube、CE进程及Jenkins slave的内存配置。
2736

被折叠的 条评论
为什么被折叠?



