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: 

Pre-commit and post-commit hooks from svn to bitbucket

Mithlesh
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!
January 31, 2024

As part of migration from svn to bitbucket on premise, we have some custom pre and post commit hooks which needed to be migrated to server end on bitbucket. How this could be done? I could not find any information online .

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Aron Gombas _Midori_
Community Champion
January 31, 2024

Custom hooks should be implemented as parts of a custom app for Bitbucket Server (and Data Center).

The two relevant modules you should implement are these:

  1. https://developer.atlassian.com/server/bitbucket/reference/plugin-module-types/pre-receive-hook-plugin-module/
  2. https://developer.atlassian.com/server/bitbucket/reference/plugin-module-types/post-receive-hook-plugin-module/

We have developed a few these, and they work reliably.

Mithlesh
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!
February 2, 2024

I agree about thase. But I am asking about pre-commit and post-commit to be implemented at server level so that whenever a developer clones the repo,the hooks are available to him. 

Aron Gombas _Midori_
Community Champion
February 2, 2024

Those modules are parts of apps that run on the server!

That means that everyone who tries to push to the server-side origins, will trigger the two hook types I mentioned. Just read the docs!

TAGS
AUG Leaders

Atlassian Community Events