You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We use bitbucket server in the local network and webhooks work fine with jenkins in the same local network.
We have to migrate bitbucket to the cloud. How can we trigger builds on our local jenkins?
A firewall gate is not an option (company policy)
If I understand correctly, the issue is that you can't have external URL which would be reachable from bitbucket cloud, to be used a webhook.
The simplest way would be to use the "Poll SCM" option in the Build Trigger section of your Jenkins Job. This means that your Jenkins would periodically would reach out to Bitbucket.org and try to understand if and what has changed and then trigger a build if needed.
This is an "expensive" action so you might need to do some tuning on the polling frequency.
A more efficient yet complex way would be to talk to your IT people and ask them what is allowed in the firewall: protocols? ports? URLs? and then try and trigger your builds using one of the allowed options - Specific port? SSH?
You can also consider using a third party like RabbitMQ. BB will send message to the queue using a webhook and your Jenkins will be registered as a consumer to the same queue.
Hope that helps