Git webhook does not trigger Jenkins build when pushed from remote branch Git webhook does not trigger Jenkins build when pushed from remote branch jenkins jenkins

Git webhook does not trigger Jenkins build when pushed from remote branch


It depends on what type of event your webhook was created for.

If it is a pull request event, then case 1 will trigger it (which, in turn, will activate your listener, here a Jenkins instance).
Case two is just a push event, not a PR one: you are pushing directly to upstream, instead of pushing to origin (your fork) and making a PR from there.