简体   繁体   English

Jenkins-sonar构建错误

[英]Jenkins-sonar build error

I am getting the below error logs while configuring my job on jenkins with sonar : 我在使用sonarjenkins上配置我的工作时收到以下错误日志:

[ERROR] SonarQube server [ http://wkwmorablrd01:9000] can not be reached [INFO] LNG ............................................... FAILURE [17.172s] [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project extension: Unable to execute SonarQube: Fail to get bootstrap index from server: Status returned by url [ http://wkwmorablrd01:9000/batch/index] is not valid: [404] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR]无法访问SonarQube服务器[ http:// wkwmorablrd01:9000] [INFO] LNG ............................ ................... FAILURE [17.172s] [ERROR]无法执行目标org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:声纳(项目扩展名为(default-cli):无法执行SonarQube:无法从服务器获取引导索引:url [ http:// wkwmorablrd01:9000 / batch / index]返回的状态无效:[404] - > [帮助1] [ERROR] [ERROR]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]使用-X开关重新运行Maven以启用完整的调试日志记录。 [ERROR] [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :extension [错误] [错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:[错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [错误] [错误]纠正问题后,您可以使用命令[ERROR] mvn -rf:extension恢复构建

Could you please help me ? 请你帮助我好吗 ?

Regards, Shwetha 此致,Shwetha

Double-check which version of SonarQube your Jenkins is using. 仔细检查Jenkins正在使用的SonarQube版本。
The 6.5 version of SonarQube (or more) is required . 需要6.5版本的SonarQube(或更多版本)

But first, do check your SonarQube server is correctly configured: 但首先,请检查您的SonarQube服务器是否配置正确:
" Installing the Server " 安装服务器

And make sure you don't have HTTP(S)_PROXY environment variables that would make your connection foes to a proxy while your server might need to be accessed without a proxy (if on the same LAN) 并确保您没有HTTP(S)_PROXY环境变量,这些变量会使您的连接失败,而您的服务器可能需要在没有代理的情况下访问(如果在同一LAN上)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM