I'm not sure if this is the correct defect but im my case when i checkout a git repo using the checkout step anc configure poll: false i see in the git pooling log that this repo is being checked for changes....
node('build') {
checkout changelog: false, poll: false,
scm: [$class: 'GitSCM',
branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'git_ci_credentials', url: 'https://hidden']]]
}
The pooling log:
Using strategy: Default
[poll] Last Built Revision: Revision hidden (refs/remotes/origin/master)
using GIT_ASKPASS to set credentials git_ci_credentials
> git ls-remote -h https://hidden # timeout=10
Found 6 remote heads on https://hidden
[poll] Latest remote head revision on refs/heads/master is: hidden - already built by 171
Done. Took 5.8 sec
No changes
Would need to study your example more closely since so far I do not understand it. (Generally, steps to reproduce from scratch are more helpful than explanations.) Possibly same as JENKINS-38659.