error observed:
serverUrl in webhooks is always set to localhost:9000 ["serverUrl": "http://localhost:9000/"] even when a server base url (sonar.core.serverBaseURL) is specified in sonarqube.
steps to reproduce:
Configure a webhook
Check serverUrl in delivery of webhook
Its always localhost:9000. It should be one from server base url (sonar.core.serverBaseUrl)
I’ve just tested in 7.1, and the serverUrl in the webhook payload perfectly reflects the configured base url. How are you trying to configure sonar.core.serverBaseUrl? Via the UI, or via sonar.properties? Because the latter will not work.
I would recommend not setting that value that value in any file/script, but rather manage it purely via the SonarQube UI. That way the setting is persisted and well managed through any transition/upgrade.