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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
I have access to 10 different repositories from our Dev team. From each of the repository I need only one specific file. Each specific file from the repositories will be used by team members or tools who are not allowed to have access to those 10 repositories.
Therefore I'm planning to create another repository which contains each specific file from the 10 repositories. This way it's easier to provide access to these files to team members and tools.
My problem is that these files have to be always up-to-date. If one of the files was updated in one of the 10 repositories it also needs to be automatically updated in my repository.
I wanted to ask what the best practice is to make this process work?
I'm grateful for any advice. Thank you!
Best,
Alexander
That depends on the required access level (read/write/delete), your technology stack and use cases (for example, what happens if one of the files is updated while a user reads it).
For the most simple case, if the systems/users just need read access and you don't care about updates during read, you can use either:
1. Third parties like BitBucket pipelines or ArgoCD, to listen to changes and update the dedicated repo.
2. Have a small service which only returns the specific files directly from BitBucket. See here for a simple CURL example: https://community.atlassian.com/t5/Bitbucket-questions/How-to-download-a-file-from-bitbucket-downloads-during-pipelines/qaq-p/1859283.
3*. This one is more cumbersome but it eliminates the file duplication so I'm putting it here - use submodule or sub-tree. See here:https://community.atlassian.com/t5/Bitbucket-questions/How-to-add-a-subrepository/qaq-p/778446
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.