Jenkins build is not triggered by the git webhook when pushed changes from a remote repository branch
I have the main git repository (upstream) and the forked git repository (origin). When I push changes to upstream/master, I expect the Jenkins build to start automatically.
Case 1: Created Pull request and merged origin/my_branch into upstream/master using the "Merge Pull Request" button from GitHub web interface
Case 2: Created Pull request and merged origin/my_branch into upstream/master using the command line
git push upstream my_branch:master
Firstly, I would like to know the difference between case 1 and case 2 merges
My observation is that git webhook trigger works perfectly in case 1 but in case 2 git webhook failed to trigger the Jenkins build. Did anyone face the same issue?
Please help me understand the difference here. thanks in advance