Issue
-
How can I include or exclude certain branches from webhooks in a multibranch job.
-
Can I ignore changes from older tags?
Environment
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller
-
CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
-
CloudBees Jenkins Enterprise
-
CloudBees Jenkins Enterprise - Managed controller
-
CloudBees Jenkins Enterprise - Operations center
Resolution
The Basic Branch Build Strategies Plugin adds a new Build strategies
option. The plugin supports both Multibranch projects and Organization Folders.
Configuration
In the following example, we are going to configure a job to exclude all webhooks except from a certain branch:
-
After installing the plugin, a new dropdown option named
Build strategies
will appear in the job configuration. -
Click the
add
button and chooseNamed branches
from the available options. -
To exclude all webhooks except for a certain branch, use the
Exact name
option. Usewildcard
or regular expressions for more complex filtering.

Refer to the plugin home page if you are interested in other build strategies such as ignoring older tags.