Created
August 25, 2020 11:33
-
-
Save stawiu/ed7c4077f11b6bc2aa2f67c83af6617b to your computer and use it in GitHub Desktop.
How to send bitbucket webhook to jenkis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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