The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events