Some of my builds have an include of a single file
I have fast remote polling enabled. I also hit this issue with fast remote polling off. I can check in something on a branch in the scripts2 dir, and the job which is monitoring scripts/test.sh will still run. The polling log shows changes. And the changes are shown as only the files changed in the scripts2 dir.
It does correctly skip running the job when I have no remote refs, so :
git ls-remote http://githq/releng.git master
But on my other repo I get
git ls-remote http://githq/bigger.git master
In addition, the git-plugin looks like it is polling both heads and remote refs, line 104 in the GitSDMSource.java
return Arrays.asList(new RefSpec("+refs/heads/:refs/remotes/origin/"));
Looks like it polls my ref/remotes, which is way out of date compared to the head, which means something will be triggered. I'm trying to change the plugin, or see if I can update the remote ref to see if that fixes things, but right now I haven't been able to do either one. I also am not sure I am even looking at the right spot.