Declarative Jenkins Pipeline to Poll different branches?
One could use the PollSCM plugin.

https://jenkins.io/doc/book/pipeline/syntax/

triggers { pollSCM('H 4/* 0 0 1-5') }



  The pollSCM trigger is only available in Jenkins 2.22 or later.