Good afternoon!
Can I use a pipeline to prevent a commit from being made or something specific, for example in bitbucket cloud there is no validation for tags, so for example I want to prevent commits on a tag, to leave it immutable or even prevent its deletion, we know that git has a feature called git hook, can I implement this within the pipeline so that it blocks any commit before interacting with the repository?
I'm not getting your goals here, so I would appreciate it if you could give more context.
That said, in Bitbucket cloud, you can't directly use a pipeline to prevent a commit from being made or enforce Git hooks to block commits at the server level. Bitbucket cloud doesn't provide server-level Git hook capabilities like some other Git hosting services do.
You can take some alternative approaches to achieve similar outcomes using the following features:
I hope this helps.
Regards,
Syahrul
I would like something like a pre-recive that analyzes before entering the cloud, similar to the link above, but I haven't found this functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it possible to use branch restrictions on TAGs, such as stopping the name, being immutable, not allowing deletion?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not possible to use git hook in Bitbucket cloud or tags restriction. We do have an existing feature request on this at:
Regards,
Syahrul
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.