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
Is there a way to ensure that a webhook URL is only associated with one branch?
I'm currently using Jenkins, and I've found a way to deploy my code into a dev or prod environment and separate the pipelines into branches.
So the develop branch is deployed in dev and the master branch in prod.
My problem is that I have the impression that we can't really configure Bitbucket so that it triggers a pipeline based on a branch, do you have any ideas?
Thanks in advance.
G'day, @Sofiane Hadjadj
Welcome to the community.
I understand you wish to trigger a webhook based on a specific branch to your Jenkins server. Unfortunately, the webhook in Bitbucket cloud will trigger for all branches now. We do have an existing feature request that I highly suggest you keep an eye on:
I hope this helps.
Hey @Sofiane Hadjadj !
You could try using Webhook to Jenkins for Bitbucket plugin that does offer this functionality.
If you'd like to chat about your use case and see how the app works, you can book some time in my calendar or you can just give it a try.
Full disclosure- I work for Appfire, the plugin's developer.