jenkinsci / bitbucket-push-and-pull-request-plugin

Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.

Home Page:https://plugins.jenkins.io/bitbucket-push-and-pull-request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't filter on Bitbucket PR source Branches instead of Target branches

SumanDas94 opened this issue · comments

I have a requirement where i need to filter branches for a build based on the source branch of PR.
Currently build is triggered anyways and have to write custom logic inside the jenkins script to handle the further build steps prevention on that branch as my filtering criteria needs to be the source branch and not destination branch
Is there a reason why we use only destination branch for the plugin branch regex matches (for PRs) and not source branch ?