php-censor: Webhook Automatic Building Not Working

Hi, I use BitBucket and can trigger manual builds without any problems. I recently tried to set-up automatic builds using BitBucket’s Webhooks (https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html) and this appears to only half work.

The webhook got triggered and sent a message to PHP Censor, which responded with a: { "status": "ok" }

However in PHP Censor nothing happens and no builds get triggered. I resent the request twice but still nothing happened.

  • PHP Censor v0.21.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@corpsee It would be nice to create a “generic webhook” in order to trigger a build with a simple curl call.

In my case I’m using a simple remote Mercurial repo (via ssh). So I could use the changegroup hook to trigger a curl call after each commit which triggers then the php-censor build.

e.g.

[hooks]
changegroup = curl --silent http://php-censor/webhook/generic/project-id/token/whatever

Here is an example for Jenkins: https://stackoverflow.com/a/13279113