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
My solution is:
branches:
'{master}':'{develop}':
'{release}':
and combine with branches permission.
Any suggestions for this scenario are big help for me.
Thanks,
nat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.