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

Handling Pull Request Approvals in Bamboo

Timothy_Harris March 8, 2018

Hi All,

Using BitBucket Repository (Cloud) and Bamboo Server 6.2.2

I have a scenario where I need to do the following.

 

1. PLAN-A - Want to check that the feature branch merges cleanly with the branch it was started from. Doe some compilation and basic checks.

  • A pull request is opened.
  • Bitbucket sends a trigger to Bamboo with a Web Hook.
  • Bamboo creates a branch for PLAN-A and builds it. 
  • Every time a new change is added to the branch the branch plan is executed. 
  • Results are posted to Pull Request

I have configured a web hook on Bitbucket like this.

https://MY_BAMBOO/rest/triggers/1.0/remote/changeDetection?planKey=MY-KEY&skipBranches=false

I have a Bamboo Plan with a remote trigger set. The plan creates a branch on pull request creation. This seems to work fine. If there are changes then the branch plan is created and executed. 

2. PLAN-B - Merge the change into the branch it was branched from. Doe some compilation and checks. Push the merge back to BitBucket.

  • Bitbucket sends a trigger to Bamboo with a Web Hook.
  • Bamboo creates a branch for PLAN-B
  • The branch is merged into the base branch.
  • Bamboo builds it.
  • On success the merge is pushed back to BitBucket which closes pull request.

 

This kinda seems to work. Sometimes I feel like it says no changes detected. Also I cannot seem to configure a GateKeeper merge strategy. The option is simply not there. 

 

Has anyone else had a scenario like this one?

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events