Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,003
Community Members
 
Community Events
184
Community Groups

How to create a webhook that triggers on Merge button

Hernando Gallego
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 26, 2023

I am trying to create a why so my jenkins Pipeline gets triggered when the user hits the MERGE button on bitbucket.

 

Is there a way to achieve that? Seems like a Webhook might need to be developed but i cannot see proper payloads for that kind of data.

 

Thanks

2 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 27, 2023

Hello @Hernando Gallego ,

Welcome to the Community!

Could you please let us know if your question concerns Bitbucket Cloud or Bitbucket Server? 

If it's Bitbucket Cloud, you can create a new webhook by accessing Repository Settings > Webhooks > Add webhook. While adding the new webhook you will be presented with all the available trigger options, where one of them is PullRequest:Merge.

The details of each trigger event and their respective payloads are available in the following documentation : 

Thank you, @Hernando Gallego!

Patrik S

Hi @Hernando Gallego -

You may want to consider evaluating a tool like Webhook to Jenkins for Bitbucket to help you achieve your goal. It will enable you to trigger a build in Jenkins when a Pull Request is merged.

You can reach out to our awesome support team to ask any questions you might have.

You can also email me at Jennifer.dempsey@appfire.com and I can put in contact with our PM to further discuss your needs and schedule a demo. We'd be happy to help you any time.

Warmly,

Jennifer Dempsey, Product Marketing Manager, Appfire

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events