Polling ignores commits in certain paths in multibranch pipeline
Theoretically, you can call the GitSCM
class with an includedRegions
path restriction in the checkout
step (e.g. see here for the syntax).
However, this is not working with pipelines, as I just checked it last week. So unfortunately, Jenkins is really not well-suited for monorepos.