We are using Bitbucket standalone server version 4.14 .
we have to mirror the repository from remotely hosted bitbucket server .
As I used import repository option to download the repository for once and can't keep update the repository with new commit. Since we are using standalone server, unable to use "mirror " add-on which required "Bitbucket Data center" License.Looking for an option to automate the repository update from remote Bitbucket server.
Hello Kiran, The only way to mirror within a non-DataCenter environment is to use use a plugin. You can take a look at this one Repository Mirror Plugin for Bitbucket
You can also review the following blog for more information and an example too:
https://stiltsoft.com/blog/2015/09/how-to-mirror-to-remote-repositories-from-stash-2/
I hope this Helps =)
Hello Lonnie ,
Appreciate your effort and time in respond my query.. This sounds great. If my understanding is correct, we have to push the repository from remote source server to local server along with new commit.
If so , is there any way we can pull from remote source server to Local server.
Thanks in Advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, In your case where you are using a plugin you would want to:
So when you clone a repo it will set all the URLs to that. Meaning all pushes, pulls and fetches will be from that cloning URL.
We can update the Push URL to another remote repo:
Example:
git remote set-url --push origin ssh://git@bitbucket.example.com:7999/PROJ/repo.git
I hope this helps
Lonnie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.