I want to update my `bitbucket-pipelines.yml` file, but I don't want to update the main branch one in case I break something.
I am under the impression that the master version of `bitbucket-pipelines.yml` is being used to build branches (which is fair)
Is it possible to tell pipelines to use the yml file from the branch instead of the master version?
Hey @Patrick,
The `bitbucket-pipelines.yml` file that is used is the one on whatever commit triggered the build.
I.e. If you had a `bitbucket-pipelines.yml` on master that looked like
pipelines:
default:
- step:
script:
- echo "master"
and you push a commit to branch 'feature/my-cool-feature' that looks like
pipelines:
default:
- step:
script:
- echo "new pipeline configuration"
The resulting build from that commit will print "new pipeline configuration"
but how would the build be triggered if there no rule for the current branch in the master branch?
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.