I'm experiencing a weird issue with GitHub Plugin when using the GitHub hook trigger for GITScm polling functionality. Specifically, I have a job which is supposed to run on each commit for our master branch(which is configured in the Branches to build field of the SCM section), but instead it gets triggered for pushes to any and all branches, despite the Job being configured clearly only for master.
The interesting part, is that when I look at the Polling Log I see:
[poll] Latest remote head revision on refs/heads/master is: ABC - already built by 13
Done. Took 1 sec
As it states, it clearly sees that the master branch commit ABC has already been built by job 13, and yet, it then says that Changes found, and starts a #14 master branch build for the same commit that already was built. And when I do check the Changes section, it's empty:
This behavior makes no sense.
This isn't something I've seen with other builds using the GITScm polling function, and I'm speculating, but I think the issue is due to also a Multibranch pipeline existing for the same repository, and the GitHub Webhook being configured like this:
I'm not sure though.