Webhook Not Triggering Deploy Playbook
Who this is for
Users who have set up automatic deploys via webhook (push-to-deploy) but find that pushes to the repository are not triggering a deployment.
How Webhook Deploys Work
- CloudAIPilot generates a unique webhook URL for each site or app.
- You register this URL as a webhook in your git provider (GitHub, GitLab, Bitbucket).
- When you push a commit to the configured branch, the git provider sends an HTTP POST to the webhook URL.
- CloudAIPilot receives the request, verifies the token, and triggers a deployment.
Step 1 — Verify the Webhook Is Registered
- Open Site detail → Git tab (or App detail → Source tab).
- Copy the Webhook URL shown.
- Go to your git repository → Settings → Webhooks.
- Confirm the webhook URL is registered and matches what CloudAIPilot shows.
Step 2 — Check the Webhook Delivery Logs
Most git providers log every webhook delivery attempt:
GitHub: Repository → Settings → Webhooks → Click your webhook → Recent Deliveries tab.
GitLab: Repository → Settings → Webhooks → Click the webhook → View details.
Bitbucket: Workspace settings → System hooks, or Repository settings → Webhooks → View requests.
Look for:
- HTTP status code:
200means CloudAIPilot received and accepted it. Any other code is a problem. - Timing: if no delivery attempt shows, the webhook URL was not triggered (check the branch filter).
Step 3 — Check the Configured Branch
CloudAIPilot only deploys when a push is to the configured branch:
- Open Site/App → Git settings.
- Check the Branch field.
- Ensure you are pushing to the exact same branch (case-sensitive).
If you pushed to main but the webhook is configured for master, no deploy will fire.
Step 4 — Re-test the Webhook Manually
- In your git provider, find the webhook delivery log.
- Click Redeliver on the most recent delivery.
- Check CloudAIPilot's Activity Center for a new deployment job.
If redelivery triggers a deploy: the webhook is working. The issue was a missed push or branch mismatch.
If redelivery does not trigger: check CloudAIPilot's webhook secret.
Step 5 — Rotate the Webhook Secret
If CloudAIPilot is returning 401 or 403 on webhook deliveries:
- In Site/App → Git settings, click Rotate Webhook Token.
- Copy the new token.
- Update the webhook secret in your git provider to match the new token.
Step 6 — Check CloudAIPilot Is Reachable from the Internet
The git provider's servers must be able to reach CloudAIPilot's API at https://app.cloudaipilot.com (or your staging URL). If CloudAIPilot is behind a firewall or unreachable, webhook deliveries will fail silently.
Common Causes and Fixes
| Symptom | Cause | Fix |
|---|---|---|
Git provider shows delivery 200 but no deploy | Branch mismatch | Update the branch setting to match your push target |
Git provider shows 401 Unauthorized | Webhook secret mismatch | Rotate token and update in git provider |
Git provider shows 404 Not Found | Webhook URL is wrong or site was deleted | Re-copy the webhook URL and re-register |
| No delivery attempts at all | Webhook not registered | Register the webhook URL in the git repository settings |
| Deploy triggered but fails | Deployment issue, not webhook | See KB-12-01: Deployment Failed Playbook |
Related Articles
- KB-03-08: Git Settings and Webhook Deploy
- KB-04-06: Build and Deploy from Git
- KB-12-01: Deployment Failed Playbook