sradi use the option "changelog: false", i had used the Disable with no success, but adding the changelog option fixed everything. You might have to restart Jenkins for the polling to take effect correctly and not use the cache.
Here is my git checkout that i dont want to be polled, this repo is cloned into the CI-CD directory inside the project:
extensions: [[$class: 'DisableRemotePoll'],
[$class: 'PathRestriction', excludedRegions: '*']],
userRemoteConfigs: [[url: 'GithubURL]],
And the polling will look like this:
Started on Jan 22, 2018 9:43:15 AM Using strategy: Default [poll] Last Built Revision: Revision a2a141227f71769af6e69a0b5d1dacfb6478effe (origin/develop) > git --version # timeout=10 > git ls-remote -h
- timeout=10 Found 36 remote heads on
[poll] Latest remote head revision on refs/heads/develop is: a2a141227f71769af6e69a0b5d1dacfb6478effe - already built by 272
no polling baseline in /Users/mcoeadm/.jenkins/jobs/pe-dev- Davita Dev - Android/workspace/CI-CD on Done. Took 0.69 sec No changes . --> "THIS IS THE LINE THAT MAKES THE DIFFERENCE"
Hopefully this helps.