hey thats cool. I'll have to test that, where is that in the docs? I 
couldn't find it anywhere maybe it was right under my nose.

On Tuesday, April 17, 2018 at 11:42:14 PM UTC-4, Mark Waite wrote:
>
> There is a strategy called "OURS" and a strategy called 
> "RECURSIVE_THEIRS".  Will either of those do what you want?
>
> Mark Waite
>
> On Tue, Apr 17, 2018 at 5:51 PM red 888 <[email protected] 
> <javascript:>> wrote:
>
>> I want to merge a branch into the current one but reset the current 
>> branch to the one I'm merging in:
>>
>> checkout([$class: 'GitSCM',
>> branches: [[name: "${env.BRANCH_NAME}"]],
>> doGenerateSubmoduleConfigurations: false,
>> extensions: [
>>     [$class: 'PreBuildMerge',
>>         options: [
>>             fastForwardMode: 'NO_FF',
>>             mergeRemote: 'origin',
>>             mergeStrategy: 'MergeCommand.Strategy',
>>             mergeTarget: 'otherbranch']
>>      ],
>> ]
>> ])
>>
>> Is there an "except their changes" feature here? Actually I think I want 
>> a full reset because I want origin here to be identical to otherbranch
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/dfdb1112-fbdb-4929-87d7-0aebf3e4c553%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/dfdb1112-fbdb-4929-87d7-0aebf3e4c553%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9d9dbb71-cc47-45ef-a40d-e6b8c4da8b94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to