Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stawiu/ed7c4077f11b6bc2aa2f67c83af6617b to your computer and use it in GitHub Desktop.
Save stawiu/ed7c4077f11b6bc2aa2f67c83af6617b to your computer and use it in GitHub Desktop.
How to send bitbucket webhook to jenkis
If you have jenkins multibranch pipeline already setup you most likely have all the plugins needed. it is not required to change jenkins.
The POST request content and headers inform jenkins which repo to update. Meaning:
The webhook url is common for jenkins instance and all its pipelines so that you always have the same link to paste in BB.
Main URL :
http://yourjenkins.com:8080/bitbucket-scmsource-hook/notify
Sources:
-https://support.cloudbees.com/hc/en-us/articles/115000051112
-https://support.cloudbees.com/hc/en-us/articles/115000053051-How-to-Trigger-Multibranch-Jobs-from-Bitbucket-Server-
Open port 8080 in firewall for following ip's:
https://ip-ranges.atlassian.com/
Add Bitbucket Webhook to repository:
- Use "Main URL" above
- select skip certificate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment