Missed Team ’24? Catch up on announcements here.

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

How to kick off merge job after APPROVED pull request

Adam Hyatt March 23, 2018

New to BitBucket and Bamboo; I'd like to have the following process:

 

1) Dev's create branch off master, complete task

2) Dev creates pull request for branch and attaches reviewers

3) Code Review occurs, may need additional changes, eventually branch is approved

4) Bamboo triggers merge of branch into master once pull request is approved

 

Currently the build triggers after a pull request is created, but the result is kicking off a merge before the code review is approved. Is their a way to configure this behavior? If not, what is the best way I can accomplish the above flow?

1 answer

0 votes
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2018

Actually, Bamboo and Bitbucket integration is designed to have the following flow:

  1. Pull Request created
  2. Bamboo perform merge build (do not configure it to perform push for successful build)
  3. Reviewer for the Pull Request can see if there is any error with the build after the merge (this merge isn't push to Bitbucket yet)
  4. Reviewer approve the Pull Request
  5. Reviewer or user with permission to merge it will click on the Merge in the Pull Request

At the moment, Bamboo Branch plan will run automatically when it is created.

Refer to the following feature request:

https://jira.atlassian.com/browse/BAM-12692 (which is related to https://jira.atlassian.com/browse/BAM-12451)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events