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)
- 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
- CloudBees Jenkins Platform - Client controller
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Distribution
- Jenkins LTS
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.
Tested product/plugin versions
- Basic Branch Build Strategies Plugin ver 1.3.0
- Bitbucket Branch Source Plugin ver 2.2.15
- GitHub Branch Source Plugin ver 2.4.1
- GitHub Organization Folder Plugin 1.6
0 Comments