I'm not sure I understand what you are trying to achieve with "Included and
Excluded Regions (paths)"?
SCMHeadFilter filters if the supplied SCMHead should be there or not. In
your case if you would return false for the master branch it would not
create a job for that branch. And if it already had a job it will be marked
as dead and removed when the orphaned item strategy kicks in.

/B

Den sön 12 maj 2019 kl 15:56 skrev Peter Goodman <[email protected]>:

> Hi,
> I'm trying to add an extension which will enable Included and Excluded
> Regions (paths) for Multi Branch GitHub pipelines.
>
> I can do this relatively simply using a *SCMHeadFilter* which works for
> pull requests because I can get the files changed in the entire pull
> request. For master though I would really only want to consider those
> commits since the last build.
>
> How can I figure that out in the SCMHeadFilter.isExcluded(SCMSourceRequest
> scmSourceRequest, SCMHead scmHead) method? Or is there another way to
> somehow set this on the underlying GitSCMBuilder when it is being built?
>
> Thanks,
> Pete
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/0c5e2277-a35d-4d6c-a342-45cb6d6951c1%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/0c5e2277-a35d-4d6c-a342-45cb6d6951c1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Robert Sandell*
Software Engineer
CloudBees, Inc.
[image: CloudBees-Logo.png] <http://www.cloudbees.com/>
E: [email protected]
Twitter: robert_sandell

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0WTbAoSGyk0%2BFz%3D-d6oxZHx3_6sLPTrwRhKD9N0zouqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to