Sonarqube webhook not valid with Jenkins Localhost

Im testing using a Sonarqube Server Community EditionVersion 8.4.1 (build 35646) and Jenkins Server 2.235.5. Both are in the same machine.

Im trying to implement Sonarqube functionalities in my Jenkins Pipeline following some tutorials.

This is the Pipeline Stage/Step where I have defined the Sonarqube implementation:

stage(‘Analysis’) {
steps {
withSonarQubeEnv(‘sonarqubeServer’) {
bat ‘dotnet build-server shutdown’
bat ‘dotnet sonarscanner begin /k:sonarqubePipeline
bat ‘dotnet build’
bat ‘dotnet sonarscanner end’

When I want to define a webhook in Sonarqube (http://localhost:8080/sonarqube-webhook/), appears me this message:

" Invalid URL: loopback and wildcard addresses are not allowed for webhooks."

I already try to update windows host file with another name, but no working :frowning:

Hi Marcos! Welcome to the Community!

As stated, loopback URLs are not compatible with webhooks. “localhost” being a loopback address, this will not work. You will need to either use the private or public IP, or use a DNS service for a friendly hostname.