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,298,290
Community Members
 
Community Events
165
Community Groups

Trigger build only if a PR is open

I use a Bitbucket server (7.7.1) with a Bamboo server (7.2.1), so there is a default trigger Bitbucket server repository trigger which is triggered whenever there is a push to the branch.

This is not the behaviour I expect because my required behaviour is that a build is triggered only when there is an open PR for this branch (e.g. merging the branch into develop). Is there any way it can be achieved?

1 answer

1 accepted

Actually I have found a solution. I needed to go to Edit plan -> Branches and select When pull request is created. In this case Bamboo creates a new sub-plan for the branch and triggers a build. This is exactly what I require

aaa.JPG

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

957 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you