当我激活Jenkins和Sonarqube之间的集成时,如果项目已将数据放在声纳网站上,我会在Sonarqube扫描程序执行期间收到错误。
此错误是:
java.lang.IllegalStateException:
Fail to request http://192.168.163.128:9000/api/ce/submit?projectKey=itoo-exam-api&projectName=itoo-exam-api
你会如何解决这个问题?
答案 0 :(得分:0)
检查完整的调试日志,如in this thread:
我在
-X
启用了sonar_run.bat
,然后发现它需要以下路径
C:\Windows\System32\config\systemprofile\AppData\Local\Temp
存在,我的情况是我没有
Temp
文件夹,因此上传失败并出现上述错误。
(或添加TEMPDIR
variable as in here)
更一般地说,检查一下sonarqube日志。