Didn't find it after a 30 seconds look, but possibly there's an env var for
the target branch. Then, you could simply add a condition in your pipeline
to stop the build immediately if this is not the branch you want.

2017-08-23 13:47 GMT+02:00 Steven Foster <[email protected]>:

> Ok, so the functionality to filter based on a PRs base branch isn't there?
> For the branch portion, I'm able to make it build only the branch I want.
> But with PRs, it seems to be all or nothing. In my case there are hundreds
> of PRs and I'm only interested in building a select few based on a specific
> branch.
>
> On Wednesday, August 23, 2017 at 12:42:06 PM UTC+1, Mark Waite wrote:
>>
>> It supports filtering by branch name so you can limit it to only build
>> certain branches.  Add "Filter by name (with regular expression" or "Filter
>> by name (with wildcards)" to the job configuration to only build specific
>> branches.
>>
>> It can limit branch discovery to exclude branches that are also filed as
>> pull requests (for pull requests are being submitted in the same repository
>> as the destination branch).  Refer to "Discover branches".
>>
>> It can ignore pull requests from the origin repository by deleting the
>> "Discover pull requests from origin" behavior.
>>
>> If can ignore pull requests from forks by deleting the "Discover pull
>> requests from forks" behavior.
>>
>> Mark Waite
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" 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/ms
> gid/jenkinsci-users/406afa5b-ef7f-4ee8-97b9-e9eedb76def5%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/406afa5b-ef7f-4ee8-97b9-e9eedb76def5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/CANWgJS5YPEkz247b9RbF3fPExApGd%3DCw20STL4XiyLe1LUrfcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to