I'm using Blue Ocean against Bitbucket Server. I want a new build to occur:
It appears that I can do the first by choosing "Discover Branches: Only branches that are also filed as PR's". I can do the second by choosing "Filter by name: master".
But if I specify both, it seems to apply the name filter to discovered branches, so no PR's are ever discovered. Furthermore, it never builds master because master is never the subject of a PR (we have master locked against direct commits, as is common in enterprise development.)
I figured it out but it was not intuitive. You must add two BitBucket Branch Sources, both pointing to the same Repository. The first must be the Filter by Name: Master. The second must be "Discover Branches: Only branches that are also filed as PR's". If they're in the opposite order, they won't work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With