I am trying to use SonarQube’s Maven plugin in Jenkins connecting to SonarQube 8.7 Enterprise. I am getting the following error:
mvn sonar:sonar \
-Dmaven.repo.local=${env.WORKSPACE}/.m2/repository \
-Dsonar.projectKey=${project}
...
User cache: /var/lib/jenkins-slave/.sonar/cache
ERROR SonarQube server https://sonarserver.domain can not be reached
INFO ------------------------------------------------------------------------
INFO BUILD FAILURE
INFO ------------------------------------------------------------------------
INFO Total time: 7.333 s
INFO Finished at: 2021-04-06T16:05:38-04:00
INFO ------------------------------------------------------------------------
ERROR Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project java_project: Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: Received fatal alert: protocol_version -> [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]ehttp://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
I’m not sure where to start with error “protocol_version”? As far as I can tell it’s downloading the latest maven plugin version. Do I need to set something on the SonarQube server?
EDIT: I have since updated the server to 8.8 Enterprise and I still receive the same error.