Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins can't reach Sonarqube

I am currently trying to get my Jenkins/Sonar integration to work.

Here is what I have: Jenkins is working Sonarqube is working (reachable from webinterface) Ports are open

However! I tried all possible settings, Jenkins insists that Sonarqube is Localhost:9000, no matter what I tell it (and even if, this should work too). This leads to following:

enter image description here

and ultimately lets the build fail. What could I try to rectify this?

like image 379
Eskir Avatar asked Oct 20 '25 14:10

Eskir


1 Answers

localhost:9000 is the default sonar qube url, regarding the official documentation. You'll have to set the correct url in your pom.xml (assuming you're ussing Maven, which seems to be the case).

if you set the sonar.host.url property in your pom.xml or settings.xml with your correct sonar qube url (ie: 192.168.0.9 for example), it should work as expected

       <properties>
            <!-- Optional URL to server. Default value is http://localhost:9000 -->
            <sonar.host.url>
              http://myserver:9000
            </sonar.host.url>
        </properties>
like image 98
dwursteisen Avatar answered Oct 22 '25 04:10

dwursteisen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!