bitbucket-pullrequest-builder-plugin
bitbucket-pullrequest-builder-plugin copied to clipboard
Bitbucket Pull Requests Builder BranchesFilter asterisk issue
The BranchesFilter checks for asterisk ("*") anywhere in the string using .contains("*"). However the instructions on the field also suggest using regular expressions. Using a regular expression that includes ".*" doesn't work, as it checks for any instance of "*" to mean "any".
Note that I'm not sure what would happen if .contains("*") was replaced with .equals("*"), the regex might not be set up to work with this, but at minimum this would make functionality less confusing. The documented usage of:
any pull requests applied for this project: any, * or empty string
...doesn't really suggest an asterisk anywhere in the string.