错误Sonarqube IllegalStateException:无法请求http://192.xx.yy.zz:9000 / api / ce / submit?projectKey =

时间:2017-04-09 13:53:59

标签: jenkins sonarqube

当我激活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

你会如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

检查完整的调试日志,如in this thread

  

我在-X启用了sonar_run.bat,然后发现它需要以下路径

C:\Windows\System32\config\systemprofile\AppData\Local\Temp
  

存在,我的情况是我没有Temp文件夹,因此上传失败并出现上述错误。

(或添加TEMPDIR variable as in here

更一般地说,检查一下sonarqube日志。