e.g.:
pipelines:
pull-requests:
'**':
- step:
script:
- npm install
- npm run lint
- npm run build
I want this to do a `git merge --no-ff $TARGET_BRANCH` before running the build.
How is this possible?
Hi Luis,
We merge the target branch to the source branch when running pull-requests builds, as per https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_pull-requestspull-requests
This type of pipeline runs a little differently to other pipelines. When it's triggered, we'll merge the destination branch into your working branch before it runs. If the merge fails we will stop the pipeline.
Is this what you were after or are you looking for something else?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.