Can I connect a SonarQube webhook to Bitbucket Cloud?

  • SonarQube 8.9

I’ve got Bitbucket Cloud using Jenkins pushing my builds to SonarQube fine. I’d like to get SonarQube to decorate my PRs but I can’t get the OAuth setup (see Bitbucket Cloud integration) because of internal network issues.

Is there any way of using the SonarQube webhook to send results to Bitbucket Cloud? I setup a test webhook just to see what’s communicated and even the basic quality gate information would be good. But how can I get this accepted and parsed by Bitbucket Cloud?


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.* → 9.9.2 → 10.2.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, you can certainly send a webhook to Bitbucket Cloud (assuming your network config allows it), but it’s not going to decorate your PR for you. That would take an intermediate process to read the webhook data and do the decoration.


It’s nice that you think I have any control over the server. If I did I wouldn’t be having these problems.

As I said, I’ve looked at the webhook contents so I know it’s not a full PR decoration. But even having the information about the quality gate displayed on the PR would be better than nothing. Is there any support or plugin for this?

1 Like


The only support is in (commercial editions of) SonarQube itself.


I give up.