Hi All,
env :sonarqube 7.9.2 community edition
Need your help on troubleshoot below error .
Doing source code analysis through Jenkins pipeline on Jenkins slave container. To download the maven dependencies we have configured proxy on settings.xml, Due to the proxy on slave container the sonarqube url is not reachable .
Jenkins pipeline snippet
stage('Analysis') {
steps {
script {
def mvnHome = tool 'maven'
withSonarQubeEnv('sonarqubescan')
{
sh 'mvn clean package sonar:sonar'
}
}
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/scanner/api/sonar-scanner-api/2.14.0.2002/sonar-scanner-api-2.14.0.2002.jar (625 kB at 311 kB/s)
[INFO] User cache: /root/.sonar/cache
[ERROR] SonarQube server [http://172.21.100.100:1201] can not be reached
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:57 min
[INFO] Finished at: 2020-03-24T16:03:55Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project demo_web_project: Unable to execute SonarQube: Fail to get bootstrap index from server: Status returned by url [http://172.21.100.100:1201/batch/index] is not valid: [503] -> [Help 1]