Cannot connect to sonarqube from Jenkins job

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 8.3.1-DE, sonarqube gradle plugin 2.8
  • what are you trying to achieve
    ./gradlew sonarqube analysis,
  • what have you tried so far to achieve this
    The Jenkins agent host is able to ping https://sonarqube.example.com/ (our own server) but when the scripted pipeline job step runs, debug log shows:
16:35:20.139 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve files of :app:debugAndroidTestCompileClasspath' started
16:35:20.139 [INFO] [org.gradle.api.internal.file.collections.DirectoryFileTree] file or directory '/sandbox/workspace/proton-android_sonarqube/app/libs', not found
16:35:20.140 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Resolve files of :app:debugAndroidTestCompileClasspath'
16:35:20.140 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve files of :app:debugAndroidTestCompileClasspath' completed
16:35:20.145 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] keyStore is :
16:35:20.145 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] keyStore type is : jks
16:35:20.145 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] keyStore provider is :
16:35:20.145 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] init keystore
16:35:20.145 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] init keymanager of type SunX509
16:35:20.147 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Create: /home/build/.sonar/cache
16:35:20.147 [INFO] [org.sonarqube.gradle.SonarQubeTask] User cache: /home/build/.sonar/cache
16:35:20.147 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Create: /home/build/.sonar/cache/_tmp
16:35:20.147 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Extract sonar-scanner-api-batch in temp...
16:35:20.148 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Get bootstrap index...
16:35:20.148 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Download: "https://sonarqube.example.com"/batch/index
16:35:20.148 [ERROR] [org.sonarqube.gradle.SonarQubeTask] SonarQube server ["https://sonarqube.example.com"] can not be reached

Hi,

Maybe this is a redaction error, but here’s what your posted logs show:

Download: "https://sonarqube.example.com"/batch/index
SonarQube server ["https://sonarqube.example.com"] can not be reached

Specifically, there seem to be double quotes inside the URL…?

 
Ann

Yeah, figured this out.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.