The clone repository built-in script should copy the scope that is in the branch model configuration. As Bitbucket Server 5.1.3 now gives the user the option to inherit these from the project settings: