Auto create Jenkins jobs for branches and pull request via declarative code in scm
Use the Bitbucket Branch Source plugin, which is an official plugin developed by the Jenkins developers.  This plugin automatically creates jobs for all branches and pull requests of all repos in a project, and if you use Bitbucket Cloud it will also set up webhooks in Bitbucket to ensure pushes and PR updates automatically trigger builds in Jenkins.