Hi,
I am surprised that in our pre-commit jobs on Jenkins we are not merging
the Pull Request Branch with current master before running all tests/checks.

Ideally we have to simulate the final status of the repository after
merging the branch to "master"


This can be simply achieved but adding an "Additional behaviour" on GIT
configuration:

Additional Behaviours - Merge Before build:
Name of repository: origin
Branch to merge to: master
Merge strategy: default
Fast forward mode: --ff

This is the configuration which I am using for all my projects and it works
like a charm

Am I missing something ?
If you agree I will submit a patch to change all the jobs and add this
magic trick

Enrico

Reply via email to