Skip to end of banner
Go to start of banner

Limiting Events which Trigger Jenkins

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Event filters

By default Webhook To Jenkins for Bitbucket notifies Jenkins on all git reference changes, pull requests creations and re-openings. If users would like to limit which of these events trigger Jenkins, they can do the following.

Go to Advanced Configuration > Limit Events and select which events you'd like to disable. Each event thats disabled will be highlighted in red.

Here's an explanation of each event:

EventDescription
Pull Request OpenedIs fired whenever a pull request is opened.
Pull Request ReOpenedIs fired whenever a declined pull request is re-opened again.
Pull Request ApprovedIs fired each time when reviewer(s) approves pull request. Disabled by default.
Pull Request MergedIs fired after a pull request is merged.
Open Pull Request Refs ChangedIs fired when change happens to any git reference which is a base branch of at least one active Pull Request. This includes commits, pushes, edits, branch creations and more. Note, we filter out all reference deleted events. Doesn't fire when refs are modified in forked repository in back-merge Pull Request.
Non-Pull Request Refs ChangedThe same as previous, but triggered for changes in references which do not participate in any active Pull Request.

You can also hover on event name on configuration dialog to get quick in-place event description.

Additional filters

FilterDescription
Trigger job if branch is deletedTrigger build on branch deletion. Can be useful for cleanup with multi-branch pipeline job.
Trigger Pull Request only if mergeableThis is an additional filter which can be used together with event filters.
When enabled, all configured Merge Checks will be respected (incl. 3rd-party ones), so that only mergeable PRs will be triggered when updated.
  • No labels