Hi
We have a software product, with 15-compnents and each of the 15-components have at least 15-modules.
Earlier a sys admin guy had configured the Stash server for us.
The current setup is like this:
- Our Engineer had created 15-Projects in stash/bitbucket server for 15-Components
- For each of the 15-modules in a given component, a individual repository is created
- Thus we have around 225 + 25(for additional module), totally 250 repositories to manage
- Individual developers creates their feature branches on their respective repositories and merge them to their production branch after release.
- Feature branches gets created only on a particular module in a particular repository which is getting affected for that feature.
- If a developer is working on a feature, which is affecting 10-modules, this developer creates a branch in each of the repository of the affected module. Thus he created 10-branches for a given feature.
In this way, we have many teams working on many individual repositories corresponding to their module. Packages are made from each of the individual repository and delivered to our infra team, who deploys the product on our hosted servers.
Since source is spread all over the place, there is no baselines/tags created for this product. Also managing these many repositories by a single CM admin is too much to handle.
As a CM admin, I’m thinking of suggesting this structure for this product.
- Create a single Project (Project A) in Stash
- Create a single repository (Repo A ) in this project
- Create a folder for each Component, i.e 15-Folders, under the repository root
- (i.e Project A - /RepoA/Component1/Module1 Module2 ……Module15
- /RepoA/Component2/Module1 Module2 ……Module15
- /RepoA/Component3/Module1 Module2 ……Module15
- :
- :
- /RepoA/Folder15/Module1 Module2 ……Module15)
In this way we’ll have single repository to handle and CM admin will create branches and developers will just make changes and commit their code.
The issue here is, we are using Git repositories, developers do not want to clone the entire repository and permissions for these repositories should be managed at folder level, so that a team has access to only their modules.
I would like to hear lots of inputs from you ladies and gentlemen. Please feel to comment/suggest and advice.
Thanks a lot.
Regards
DK