简体   繁体   中英

Jenkins-sonar build error

I am getting the below error logs while configuring my job on jenkins with sonar :

[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] Re-run Maven using the -X switch to enable full debug logging. [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

Could you please help me ?

Regards, Shwetha

Double-check which version of SonarQube your Jenkins is using.
The 6.5 version of SonarQube (or more) is required .

But first, do check your SonarQube server is correctly configured:
" 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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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