Hi Team,
I am looking for webhook which can be used to Trigger CI JOB on jenkins once the pull request is merged against branch.
Use Case: Developers usually create a local branch and raise PR against target branch, once this PR is merged against a target branch it should automatically start CI job on jenkins.
Please let me know if anyone were able to make use of webhooks on Bitbucket to achieve this
Hi, @sowmyanx! Welcome to the community!
In order to trigger a CI job in Jenkins after a pull request is merged in Bitbucket, you can follow the next steps:
Open your repository > Repository settings > Webhooks
Click on Add webhook
Add a title and the URL
Under Triggers, select the Merge option
Click Save
In case you would like to read more about Webhooks, you can access the following link:
Also, if the server that has Jenkins installed is behind a firewall, you might need to whitelist these IP addresses so Bitbucket can reach them:
I hope this helps, but do let me know if you have any questions.
Kind regards,
Caroline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.