The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Why doesn't bitbucket pipelines on 'pull-requests' perform a merge on Target Branch?

Luis Duarte
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2019

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? 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
mwatson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 19, 2019

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?

TAGS
AUG Leaders

Atlassian Community Events