How to Filter Branches from webhooks in Multibranch Jobs?

Issue

  • How can I include or exclude certain branches from webhooks in a multibranch job.
  • Can I ignore changes from older tags?

Environment

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:

  1. After installing the plugin, a new dropdown option named Build strategies will appear in the job configuration.
  2. Click the add button and choose Named branches from the available options.
  3. To exclude all webhooks except for a certain branch, use the Exact name option. Use wildcard 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

References

Basic Branch Build Strategies Plugin

Have more questions?

0 Comments

Please sign in to leave a comment.