Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Will my Gitflow work with bitbucket?

Tuan Nguyen October 28, 2019

Hello everyone,

Today I have a scenario, I try to do a lab but It did not work as I thought, like below:

- Developer 1,2,3,4 will commit the code to Branch-A (pipeline will not run). After that, they will create pull-requests to Branch-Develop (the Dev lead will approve the PR, Dev pipeline will run if merge is successful). Test team will do a test after the Dev pipeline run successfully.

- The Dev lead will create a PR from Branch-Develop to Branch-Release. Another guy will approve the PR and merge to Branch-Release. If the merge runs successfully, the UAT pipeline will run. Test team will do a test after the UAT pipeline run successfully.

I try to add pull-requests in the pipeline but It depends on the source branch (a PR from which source branch) and does not care the merge is successful or not.

pipelines:
pull-requests:
branches:
'{master,develop,release,A}':
- step:
script:

Follow this topic: https://community.atlassian.com/t5/Bitbucket-questions/Run-pipeline-on-merge/qaq-p/718768, this scenario is not able to run on bitbucket.

Is it a limitation or do you have any ideas to make it work?

Appreciate for your help, sorry about my bad description.

Thanks,

nat

2 answers

0 votes
Tuan Nguyen November 3, 2019

My solution is:

  branches:
    '{master}':

    '{develop}':

    '{release}':

 and combine with branches permission.

0 votes
Tuan Nguyen October 28, 2019

Any suggestions for this scenario are big help for me.

Thanks,

nat

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events