In the plugin Adaptavist ScriptRunner for Bitbucket Server installed on Atlassian Bitbucket v6.10.0. We have an excellent function Policy to enforce Can only push own commits in the section Enforce trusted commit authors, but can we configure it so that we have a list of users that can bypass this restriction, so I want to select a list of users on the server to which this restriction will not apply?
Hi @Владислав ,
In the latest release of ScriptRunner for Bitbucket we have now added a Condition field to the Enforce Trusted Commit Authors pre-hook.
Using this Condition field should enable you to filter out a list of users you do not wish the pre-hook to run for.
Please let me know if I can be of further help?
Kind regards,
Robert Giddings,
Product Manager, ScriptRunner for Bitbucket
Our competing (and free) "Control Freak" plugin can handle this usecase easily.
Use the "User Exemptions" list to put in the users that are allowed to push all commits.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.