Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,393
Community Members
 
Community Events
168
Community Groups

Validate code before push to Bitbucket

Edited
Syed Adil I'm New Here Aug 28, 2022

Hi Team,

 

Could any help me understand if there is a way we can intercept/validate code before pushing to Bitbucket other than using Hooks?

 

Thanks,

Syed Adil Shariq.

1 answer

0 votes
Pramodh M Community Leader Aug 28, 2022

@Syed Adil 

Welcome to the community 🙂

Pre-recieve hooks are the only way.

With this there is Git Hooks

Here's a reference

https://gofore.com/en/automate-validating-code-changes-with-git-hooks/

Thanks,

Pramodh

At the moment you will need to rely on local git pre-receive hooks as pointed out by @Pramodh M . There is an open feature request for Bitbucket cloud https://jira.atlassian.com/browse/BCLOUD-10471 to enforce hooks remotely.

Please vote to signal to Atlassian that this is a much needed feature.

Best, Ulrich

// Izymes

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events