Jenkins 声纳qube服务器[https://localhost:9000]在詹金斯找不到

Jenkins 声纳qube服务器[https://localhost:9000]在詹金斯找不到,jenkins,sonarqube,Jenkins,Sonarqube,我想从詹金斯的sonarqube建立一个代码覆盖率。该项目来自github。我已经配置了所有必要的配置,但是仍然出现以下错误。有人能帮我解决这个问题吗 Established TCP socket on 59508 [OData] $ java -cp "D:\Program Files\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.12-alpha-1.jar;D:\downloads\apache-maven-3.5.4\boot\plex

我想从詹金斯的sonarqube建立一个代码覆盖率。该项目来自github。我已经配置了所有必要的配置,但是仍然出现以下错误。有人能帮我解决这个问题吗

Established TCP socket on 59508
[OData] $ java -cp "D:\Program Files\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.12-alpha-1.jar;D:\downloads\apache-maven-3.5.4\boot\plexus-classworlds-2.5.2.jar;D:\downloads\apache-maven-3.5.4/conf/logging" jenkins.maven3.agent.Maven35Main D:\downloads\apache-maven-3.5.4 "D:\Program Files\war\WEB-INF\lib\remoting-3.21.1.jar" "D:\Program Files\plugins\maven-plugin\WEB-INF\lib\maven35-interceptor-1.12-alpha-1.jar" "D:\Program Files\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.12-alpha-1.jar" 59508
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f D:\Program Files\workspace\OData\pom.xml clean sonar:sonar
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------------< OData:OData >-----------------------------
[INFO] Building OData 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ OData ---
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] 
[INFO] ----------------------------< OData:OData >-----------------------------
[INFO] Building OData 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- sonar-maven-plugin:3.4.1.1168:sonar (default-cli) @ OData ---
[INFO] User cache: C:\WINDOWS\system32\config\systemprofile\.sonar\cache
[ERROR] SonarQube server [https://localhost:9000] can not be reached
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.056 s
[INFO] Finished at: 2018-08-27T00:09:08+08:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.1.1168:sonar (default-cli) on project OData: Unable to execute SonarQube: Fail to get bootstrap index from server: Unrecognized SSL message, plaintext connection? -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[JENKINS] Archiving D:\Program Files\workspace\OData\pom.xml to OData/OData/0.0.1-SNAPSHOT/OData-0.0.1-SNAPSHOT.pom
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
channel stopped
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succedeed?
Skipping sonar analysis due to bad build status FAILURE
Finished: FAILURE
已在59508上建立TCP套接字
[OData]$java-cp“D:\Program Files\plugins\maven plugin\WEB-INF\lib\maven35-agent-1.12-alpha-1.jar;D:\downloads\apache-maven-3.5.4\boot\plexus-classworlds-2.5.2.jar;D:\downloads\apache-maven-3.5.4/conf/logging“jenkins.maven3.agent.Maven35Main D:\downloads\apache-maven-3.5.4”D:\Program Files\war\WEB-INF\lib\remoting-3.21.1.jar“D:\Program Files\plugins\maven plugin\WEB-INF\lib\maven35-interceptor-1.12-alpha-1.jar”“D:\Program Files\plugins\maven plugin\WEB-INF\lib\maven3-interceptor-commons-1.12-alpha-1.jar”59508
频道启动
正在执行Maven:-B-fd:\Program Files\workspace\OData\pom.xml清洁声纳:声纳
[信息]正在扫描项目。。。
[信息]
[信息]-----------------------------------------------------------------
[信息]正在构建OData 0.0.1-SNAPSHOT
[信息]------------------------------------[jar]---------------------------------
[信息]
[信息]---maven clean插件:2.5:clean(默认清洁)@OData---
[警告]尝试(反)序列化匿名类hudson.maven.reporters.MavenArtifactArchiver$2;请参阅:https://jenkins.io/redirect/serialization-of-anonymous-classes/
[警告]尝试(反)序列化匿名类hudson.maven.reporters.maven指纹$1;请参阅:https://jenkins.io/redirect/serialization-of-anonymous-classes/
[信息]
[信息]-----------------------------------------------------------------
[信息]正在构建OData 0.0.1-SNAPSHOT
[信息]------------------------------------[jar]---------------------------------
[信息]
[信息]---sonar maven插件:3.4.1.1168:sonar(默认cli)@OData---
[信息]用户缓存:C:\WINDOWS\system32\config\systemprofile\.sonar\cache
[错误]SonarQube服务器[https://localhost:9000]联系不到
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:1.056秒
[信息]完成时间:2018-08-27T00:09:08+08:00
[信息]------------------------------------------------------------------------
等待Jenkins完成数据收集
[错误]无法在项目OData上执行目标org.sonarsource.scanner.maven:sonar maven插件:3.4.1.1168:sonar(默认cli):无法执行SonarQube:无法从服务器获取引导索引:无法识别的SSL消息,纯文本连接?->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[JENKINS]存档D:\Program Files\workspace\OData\pom.xml到OData/OData/0.0.1-SNAPSHOT/OData-0.0.1-SNAPSHOT.pom
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
通道停止
警告:在工作区中找不到“report task.txt”。声纳扫描仪成功了吗?
由于构建状态错误,正在跳过声纳分析
完成:失败

下面的错误是不言自明的。我有以下问题

  • SONARQUE是否在本地主机上运行,端口9000为安全端口(即https)
  • 您使用的是哪个版本的maven?有时一些Sonar插件版本与旧的maven版本不兼容

    [错误]无法执行目标org.sonarsource.scanner.maven:sonar maven- 插件:3.4.1.1168:OData项目上的sonar(默认cli):无法执行SonarQube: 无法从服务器获取引导索引:无法识别的SSL消息,纯文本连接?->[帮助1] [错误]


  • 对于您的OData项目,当您通过jenkins扫描代码时,您必须在jenkins的设置中设置主机名,不建议使用“localhost”或“127.0.0.1”

    尝试使用$HOSTNAME

  • 转到詹金斯的设置
  • 移至“Sonarqube服务器”
  • SonarQube服务器 --声纳qube装置 ---即:

  • 问候。

    1.是的。是因为我没有正确配置吗?但我在“管理jenkins”->“配置系统”2中配置了它。我使用的是3.5.4版。它支持声纳吗?