Webhook Event #
Automatically trigger BuildPiper pipelines when code is pushed to Git.
Overview #
A webhook lets your Git provider (GitHub, GitLab, and others) tell BuildPiper in real time when something happens in a repository, such as a code push, a commit, or an update. BuildPiper then automatically triggers the pipeline linked to that Git event. Builds and deployments run in step with the event, with no manual work.
By the end of this guide you will have:
• A Git Event Listener in BuildPiper that watches a repository and branch.
• A webhook in GitHub that sends events to BuildPiper.
• A pipeline that starts automatically on every matching push.
Time needed: About 15 to 20 minutes, assuming the repository is already integrated with BuildPiper.
How it works #
| # | Stage | What happens |
|---|---|---|
| 1 | You push code | A commit is pushed to the branch being watched |
| 2 | GitHub sends the webhook | GitHub sends the event details to the BuildPiper Payload URL |
| 3 | BuildPiper receives it | The event is recorded under Webhook Event → Inbound Events |
| 4 | Listener matches the event | BuildPiper checks the repository, branch, and event type against the listener |
| 5 | Pipeline runs | The linked pipeline starts, and the service build or deployment begins |
Before you begin #
Make sure you have the following ready:
• Access to a repository on a Git provider, such as Bitbucket, GitLab, or GitHub.
• The repository integrated with BuildPiper.
• Access to BuildPiper, and permission to edit the repository settings in GitHub.
• Access to the application in BuildPiper (you create the service in Step 1).
Step 1: Create a service #
The listener needs a service to act on, so create one first.
- 1
Log in to BuildPiper
- 2
Open your Application
- 3
On Service Overview, click + Add Service
- 4
Configure the Build and Deploy templates as required
- 5
Click Save

Service Overview page, where services are listed and added
Note: A service must exist before you configure a webhook listener.
Step 2: Create a Git Event Listener #
A listener tells BuildPiper which repository, branch, and events to watch, and what to run when they happen.
- 1
In the left menu, click Integration
- 2
Click Git Events
- 3
Click + Add Listener

Manage Event Listeners page
Step 3: Configure the listener #
Fill in the form using the values below, then click Save.
| Field | What to enter | Example |
|---|---|---|
| Listener Name | A unique, easy-to-recognize name | bp-gitevent |
| Git Repository | The repository integrated with BuildPiper | git-event |
| Branch | The branch to watch. Click Load Branches if the list is empty | main |
| Events | The Git events that should trigger the listener, such as Push, Pull Request, or Comment | Push |
| Application | The application that contains your service | bp-testing |
| Trigger Type | Choose Via Pipeline to run a pipeline automatically. Normal is the other option | Via Pipeline |
| Pipeline | The pipeline to run when the event arrives | gitevent_pipeline |

Listener name, repository, branch, and events

Action section with application, trigger type, and pipeline
Tip: Choose the event type carefully. If the listener expects Push events but GitHub sends something else, the pipeline will not start.
Step 4: Add the webhook in GitHub #
- 1
Open your GitHub repository
- 2
Go to Settings
- 3
Click Webhooks
- 4
Click Add webhook
Fill in the form:
| Field | What to enter | Notes |
|---|---|---|
| Payload URL | Your BuildPiper webhook URL | Usually ends in /api/v1/default/webhooks/. Ask your BuildPiper admin if you are not sure |
| Content type | application/json | Must be set exactly as shown |
| Secret | Leave blank, or add a shared secret | Optional |
| SSL verification | Enable SSL verification | Recommended for security |
| Events | Just the push event, or Send me everything | Choose Push to reduce noise |
Click Add webhook to save.

GitHub webhook settings
Step 5: Test the webhook #
• Make a small change in the repository.
• Commit the change.
• Push it to the branch you set in the listener.
GitHub immediately sends a webhook request to BuildPiper.
Step 6: Check the incoming event #
- 1
In the left menu, click Webhook Event
- 2
Open Inbound Events
Each received event shows:
• Repository name
• Event type (for example, PUSH)
• Committer
• Status
• Listener name
• Received time
If the status is Success, BuildPiper received the webhook correctly.

Inbound Events showing successful PUSH events
Step 7: Confirm the pipeline ran #
Once the event is received, the listener starts the linked pipeline, and the build or deployment begins on its own.
- 1
Open your Application
- 2
Open the Service
- 3
Click Pipeline History
Done! If you see a new pipeline run that matches your push, the setup is complete.
Troubleshooting #
Find the symptom that matches your problem and follow the fix.
Problem 1: The repository cannot be integrated #
Cause: The Git provider domain is not on the allowed list.
Fix:
- 1
Go to Manage Application → System Settings → Git Provider Whitelisting
- 2
Add your provider domain in the matching field, for example [“github.com”]
- 3
To allow all domains, enter [“*”]

Git Provider Whitelisting settings
Problem 2: Webhook requests are not reaching BuildPiper #
Check the following:
• The Payload URL is correct.
• The webhook is enabled in GitHub.
• Recent Deliveries in GitHub shows that the request was sent, and what response came back.
• The BuildPiper server can be reached from the internet or your network.
If the request comes through a restricted network or proxy, add the sender IP or domain to the whitelist:
- 1
Go to Manage Application → System Settings → Webhook Provider
- 2
Add the sender IP or domain in Git Webhooks whitelisted ips

Webhook Provider settings with whitelisted IPs
Problem 3: The event arrives but the pipeline does not start #
Check the following:
• The branch you pushed to matches the listener branch.
• The event type you triggered is selected in the listener.
• The correct pipeline is chosen in the listener.
• The listener is active.
• The pipeline logs do not show errors.
Quick reference #
| Task | Where to go | What you do |
|---|---|---|
| Create service | Application → Service Overview | Add Service |
| Create listener | Integration → Git Events | Add Listener and configure |
| Add GitHub webhook | Repository → Settings → Webhooks | Add webhook |
| Check events | Webhook Event → Inbound Events | Confirm status is Success |
| Check pipeline | Application → Service → Pipeline History | Confirm a new run started |
| Fix blocked access | Manage Application → System Settings | Update the whitelists |