it would be nice to approve/reject PR based on the build status:
see https://developer.atlassian.com/static/rest/bitbucket-server/4.12.0/bitbucket-rest.html#idp2045632
when the build is successful, Jenkins can push APPROVE status, on failure NEEDS_WORK
and then we can have further automation, like require successful build before merge.