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: 

How to handle version config files changes during the automatic cascade merge?

silmarx
Contributor
October 16, 2015

I'm trying to configure Stash to perform the automatic merges from the release branches when a Pull Request gets merged. The functionality seems nice, but we're stuck in this problem:

The release branch needs some configuration files to be changed every time a build is "released", to reflect the new build version. Therefore we have some automatic commits when a build is released. This will lead to conflicts when merging, though the conflicts are easy to solve since for those specific files the strategy should be "ours". In other words, these files should be ignored during the merge, since they don't apply to the target branch. But how can I configure the automatic merge in Stash to deal with these cases?

Otherwise I don't see how we can benefit from this feature, since this is a common practice to have some files changed related with versioning, in different branches.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mark McCormack (Adaptavist)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 16, 2015

Silvestre,

You may want to take a look at this paid add-on: ScriptRunner for Bitbucket Server / Stash.

The relevant section in the documentation shows how you can set conditions for an auto merge.

I hope you find it useful.

 

TAGS
AUG Leaders

Atlassian Community Events