Set up the Code Manager webhook on your Git host
In your Git server’s webhook form, enter your custom URL as the payload URL.
The content type for Code Manager webhooks is JSON.
The specific steps for setting up a webhook depends on your Git host. Refer to your Git host's documentation for instructions.
For example, in a GitHub repo, click Settings > Webhooks & services, enter the payload URL, and enter application/json as the content type.
On Bitbucket Server, the server configuration menu has settings for both
Hooks and Webhooks. Use the
Webhooks configuration for your Code Manager webhook. Make sure you're using Bitbucket Server
version 5.4 or later and the latest fix version of PE.
After setting up your webhook, you've finished setting up Code Manager. From now on, when you commit new code and push it to your control repo, the webhook triggers Code Manager to deploy your code. You can also use the POST /v1/webhook endpoint to manually trigger your webhook.