I work with Jenkins builds that run sonarqube scans. We had been using the BuildBreaker plugin to make sure that builds fail if they fail to surpass quality gate thresholds. The BuildBreaker plugin was flaky, sometimes producing erroneous results, but it worked most of the time. We’ve been told that we now have to use Webhooks for similar functionality. I tried to get this to work a while ago, but I couldn’t get anywhere. The documentation says that we have to enter a webhook url to pass this information to. I can’t find any examples or documentation that show what this webhook url should actually be, in the context of our Jenkins instance.
Now, the people who maintain our SonarQube instance have removed the BuildBreaker plugin entirely. Now I’m forced to figure this out, but I still have no information on how to solve this problem.
We were able to find a token value instead of a password, which is a little better. The other problem with this is that sonarqube apparently doesn’t log the attempt to send this. The job is waiting for the results, but they never find them. I have no way of telling whether SonarQube even made this call.
A new webhooks administration console was introduced in v7.1 of SonarQube that provides the functionality you note is missing. The latest version of SonarQube is v7.3.
You can checkout the 7.1 Release Notes for some details and screenshots.
Hi,
you don’t need BasicAuth, it should work without authentication.
Works fine here with SQ 7.3
The webhook deliveries are logged under project/administration/webhooks
Do you have any proxy settings in your sonar.properties ?
Regards,
Gilbert