Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

run logic before I can upstream commit to bitbucket. commit push should fail on logic failure.

Pramod Bisht
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 2, 2023

run logic before I can upstream commit to bitbucket. commit push should fail on logic failure. Maybe some kind of hook, which triggers logic?

1 answer

0 votes
Mateus T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2023

Hi @Pramod Bisht

Looks like the best way to achieve this would be to create a pre-push hook to run this logic and refuse the push if it fails.

For now, Bitbucket does not provide an option to manage server-side hooks, this is currently under consideration for the following Feature Request:

With this in mind, you would need to perform this action on client-side hooks. We have an article explaining how you can achieve this:

Cheers,

Mat

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events