I am using Jenkins with a Git plugin. Facts:
- I have 2 branches
develop and rc with the same ancestor. develop is in commit 635d361d2005f74dd55f274bf409d43d6413d9b0- I am trying to combine
develop it in rc - Changes to the
x.html file were made independently in both branches, which causes a merge conflict - I always want
develop changes to change in trump rc when a conflict occurs.
In the project, through the Git plugin, I added the additional behavior "Merge before assembly", and I can set the strategy as "recursive".

This configuration generates a merge that looks like this:
git checkout -f origin/rc git merge -s recursive 635d361d2005f74dd55f274bf409d43d6413d9b0
However, I cannot specify any strategy parameters, so this simply creates a conflict.
In particular, I am trying to perform a merge while agreeing to a conflict, as shown below:
git checkout -f origin/rc git merge -s recursive
Can this be done using a plugin?
source share