Jenkins无法联系Sonarqube本地主机

时间:2019-12-30 10:36:03

标签: jenkins sonarqube

我的Jenkins和Sonarqube本地主机之间存在连接问题,在构建过程中,我的Jenkins管道作业失败,并出现以下错误

注意:我启用了防火墙规则9000,但仍然失败

03:10:33.722 DEBUG: Download: http://sonarqube:9000/batch/index
03:10:33.780 ERROR: SonarQube server [http://sonarqube:9000] can not be reached
03:10:33.780 INFO: ————————————————————————
03:10:33.780 INFO: EXECUTION FAILURE
03:10:33.781 INFO: ————————————————————————
03:10:33.781 INFO: Total time: 0.587s
03:10:33.799 INFO: Final Memory: 3M/121M
03:10:33.799 INFO: ————————————————————————
03:10:33.800 ERROR: Error during SonarQube Scanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube

我的本​​地主机Sonarqube已在我的计算机中启动并运行,我也能够浏览它ImageFieldFile [GitHub]

--2019-12-30 10:33:26--  http://localhost:9000/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:9000... connected.
HTTP request sent, awaiting response... 200 
Length: unspecified [text/html]
Saving to: ‘index.html.3’

index.html.3                              [ <=>                                                                   ]  34.74K  --.-KB/s    in 0s      

2019-12-30 10:33:26 (231 MB/s) - ‘index.html.3’ saved [35575]

注意:所有jenkins配置也已完成

1) Manage Jenkins –> Global Tool Configuration –> SonarQube Scanner configured, please find the attached image.sonar-scanner Jenkins configuration

2) Configure SonarQube server in Jenkins, this will communicate SonarQube Server authentication.

Log in into your SonarQube Server and find following under user bar Go to My Account –> Security –> Generate Token

Sonar-server token jenkins authentication

请问有人可以帮助我解决这个问题吗?

0 个答案:

没有答案