How to auto merge Git branches prior to a Jenkins build?
I have 2 builds, one for branch master and one for production.
master
I would like to do Git merge <
You can do premerging via extensions block in pipelines (assuming you configured checkout: [ $class: 'GIT_SCM' ] already.)
checkout: [ $class: 'GIT_SCM' ]
[ $class: "PreBuildMerge", options: [ mergeTarget: "master", fastForwardMode: "FF", mergeRemote: "origin", mergeStrategy: "OURS" ] ]