Jenkins poll-scm has an option to "Ignore post-commit hooks". How to code that behavior into scripted pipeline script?
Documentation is pretty mute about that option: https://jenkins.io/doc/book/pipeline/syntax/#triggers
Basic pollscm declaration:
properties([
pipelineTriggers(pollSCM('H */4 * * 1-5')]),
])