You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi Team,
I would like to execute/run a Docker Image in pre-receive hook before pushing it to bitbucket repository.
Is that possible?
Any sample code snipped would be appreciated here.
Hi @yasreeb,
Welcome to the community.
Unfortunately, it is not possible to run Bitbucket Pipelines build in a pre-receive hook event.
This is because Bitbucket Cloud does not support server-side pre-receive hook at the moment.
We do have an existing feature request for it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-10471
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud. Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.
What you can do for now is to have a workflow where you can push your commits first in a feature branch and run Pipelines builds for that feature branch.
Once all your tests/validations are passed, you can then merge that feature branch to your main branch (or your preferred branch).
Do let me know if you have further questions.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.