As I am looking to make updates to my pipelines. What I am finding hard to understand is which branch is being used to run the pipeline.
For example my project follow git-flow . `master -> develop -> feature/*` branches with PRs.
If I chance the YML in a feature branch will it work only until is in master or develop? Or does it take the latest YML as the one to execute. I could not find anything in the documentation about this. Any help from someone that has encountered this issue would be great.
Hi @Martin Rojas,
Pipelines consider bitbucket-pipelines.yml file in a given branch to trigger the build and run the specified tasks.
Examples of situations that may happen:
It means that Bitbucket Pipelines allow you to have different build steps for each branch depending on what bitbucket-pipelines.yml configuration you have for that branch. Usually, the main configuration is created on master and them shared with other branches, that is why the main file has often details about what is triggered in other branches. To simplify the whole process the file could be the same across all branches.
I hope that answers your question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.