Good day, Friends,
Here I am using Sonarqube Community EditionVersion 8.9.7 (build 52159) and trying to integrate it with my GitHub actions.
I am using Official SonarQube Scan · Actions · GitHub Marketplace · GitHub to integrate but the job is failing. As per the document the sonar-project.properties has been created and the secrets too. Since I am using Gradle I requested to follow sonarscanner-for-gradle according to the above URL added record in gradle.properties and plugins.gradle
But still, the job is failing with some internal error
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
Caused by: java.net.SocketTimeoutException: connect timed out
I am not sure where I am failing? I have check the connectivity also can telnet to my sonarqube server from github actions. Can anyone please help me address this.
sonarqube-action.txt (629 Bytes)
error.log (6.7 KB)
my bad, I forgot to upload the error log. PFA for the error.
Hi @nrpn98 and welcome to the community
two things here:
1st: if your project uses gradle, you should not use this GitHub Action as stated in the description of it. simply make use of our scanner for gradle
2nd: the error message you are seeing comes from the fact that the scanner can not connect to your sonarqube instance. telnet is not the best way to check if the connection is working and i would recommend you to dig a little deeper in the network setup of sonarqube you have. specifically check for typos in the sonarqube url or network policies that could block a github action runner from connecting to the SQ instance. The permissions of the scanner token could also be worth checking,
hope that helps
Many thanks for the reply.
Sure let me try with your suggestions, as you told me there was an issue with my token. Updated token and used the following YAML to do the integration. Successfully the job was executed.
sonarqube-action_v2.txt (606 Bytes)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.