Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Validate code before push to Bitbucket

Syed Adil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 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 Champion
August 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

Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
August 29, 2022

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
AUG Leaders

Atlassian Community Events