bitbucket-push-and-pull-request-plugin icon indicating copy to clipboard operation
bitbucket-push-and-pull-request-plugin copied to clipboard

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

Open SumanDas94 opened this issue 3 years ago • 2 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 ?

SumanDas94 avatar Aug 11 '22 06:08 SumanDas94

Are there any updates/comments?

DzmitrySurovets avatar Apr 10 '24 14:04 DzmitrySurovets

hello in case for git workflow with trunk based development , it's better to filter by source branch this will allow me to block builds at early stage and remove lot of parsing and if condition , basically we can have a single fullfilled event which equal to pull request merged that can handle action related to main branch , is it possible to change this behavior atleast for created_comment,created_pullrequest,updated_pullrequest , merged can keep the same behavior

MohamedKHALILRouissi avatar Jan 24 '25 08:01 MohamedKHALILRouissi