• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Enterprise
    • None
    • 25
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Atlassian status as of Mar 2022

      Hi everyone,

      Thanks for your feedback, passion, and advocacy for this suggestion. Please accept our apologies for allowing this issue to remain open without a clear answer from us.

      We would love to add mirroring of external repositories to Bitbucket Data Center. However, this use case is quite rare in an enterprise environment and is associated with high engineering costs. We made a decision that this improvement is the wrong direction for our product. We remain committed to being an open company, whether it's with regards to feature requests or bugs in our software. 

      What are we doing instead? We remain committed to helping software teams deliver high-quality software faster in an increasingly competitive world. We believe that great developer tools are a key element of modern software development. To that end, we've made a lot of improvements last year and are planning to work in the following areas that help with problems development teams face now:

      • Performance and scaling to support growth
      • Security and compliance features
      • Innovations around developer productivity
      • Integrations between Atlassian and other leading products

      In the meantime, we suggest you to check on of the following Atlassian Marketplace apps:

      Cheers,

      Anton Genkin
      Product Manager - Bitbucket Data Center & Server

      Original request description

      Ability to mirror - i.e. clone and sync changes from a repository (particularly an externally hosted repository such as Bitbucket/Github/other).

          Form Name

            [BSERV-2714] Mirroring of an externally hosted repository

            JamieA added a comment -

            We recently released a new plugin that speaks to some of the requirements mentioned above - ScriptRunner for Stash.

            One of the key features is mirroring from github or bitbucket. It's easy to set up, and can mirror entire github organisations or bitbucket users, plus monitor those orgs and automatically create and start mirroring any new repos added. This can be very useful to bring in open source code you rely on inside your firewall.

            New updates can be brought in either by allowing the plugin to install a web hook into your github or bitbucket repos, or by polling.

            Docs are here

            For the general case of mirroring to those services, or from stash to stash, the englishtown plugin mentioned above works well. There is also a script example of how to apply that hook to multiple (maybe hundreds) of repos.

            JamieA added a comment - We recently released a new plugin that speaks to some of the requirements mentioned above - ScriptRunner for Stash . One of the key features is mirroring from github or bitbucket. It's easy to set up, and can mirror entire github organisations or bitbucket users , plus monitor those orgs and automatically create and start mirroring any new repos added. This can be very useful to bring in open source code you rely on inside your firewall. New updates can be brought in either by allowing the plugin to install a web hook into your github or bitbucket repos, or by polling. Docs are here For the general case of mirroring to those services, or from stash to stash, the englishtown plugin mentioned above works well. There is also a script example of how to apply that hook to multiple (maybe hundreds) of repos.

            Karl Ostmo added a comment -

            I have recently updated my repository mirroring plugin:
            https://marketplace.atlassian.com/plugins/com.kostmo.stash.mirror-manager

            Karl Ostmo added a comment - I have recently updated my repository mirroring plugin: https://marketplace.atlassian.com/plugins/com.kostmo.stash.mirror-manager

            @Enrique, sorry I didn't see your question on answers.atlassian.com, I guess I don't receive notifications. I have added comments now.

            Adrian Gonzalez added a comment - @Enrique, sorry I didn't see your question on answers.atlassian.com, I guess I don't receive notifications. I have added comments now.

            Hi Adrian,

            I tried the plugin about a month ago and was not able to get it working.
            I added a question at https://answers.atlassian.com/questions/184669/cannot-find-information-about-how-to-use-the-plugin which still waiting for an answer.
            Is there any log at the server that can tell me why the plugin is not working?

            Enrique Viera added a comment - Hi Adrian, I tried the plugin about a month ago and was not able to get it working. I added a question at https://answers.atlassian.com/questions/184669/cannot-find-information-about-how-to-use-the-plugin which still waiting for an answer. Is there any log at the server that can tell me why the plugin is not working?

            @Bernhard, yes I think the plugin is well suited for what you describe, it is in the marketplace here:
            https://marketplace.atlassian.com/plugins/com.englishtown.stash-hook-mirror

            Adrian Gonzalez added a comment - @Bernhard, yes I think the plugin is well suited for what you describe, it is in the marketplace here: https://marketplace.atlassian.com/plugins/com.englishtown.stash-hook-mirror

            This feature would also be useful for our team as we have a local Stash instance on one of our development machines running and would like to automatically mirror every change we are making in repositories there to the equivalent repositories on a remote host where everything is backed up using the companies infrastructure.

            Any concrete plans yet?

            @Adrian: is your plugin suited for production use and my usecase described above?

            Bernhard Friedreich added a comment - This feature would also be useful for our team as we have a local Stash instance on one of our development machines running and would like to automatically mirror every change we are making in repositories there to the equivalent repositories on a remote host where everything is backed up using the companies infrastructure. Any concrete plans yet? @Adrian: is your plugin suited for production use and my usecase described above?

            I've written an async post receive repository hook to enable mirroring to a remote repository. It currently only supports a single remote location repository, but I will add support for multiple locations hopefully this week.

            I plan on submitting to the Atlassian market place, but in the mean time if anyone is interested in using/collaborating it is located here: https://github.com/englishtown/stash-hook-mirror

            Adrian Gonzalez added a comment - I've written an async post receive repository hook to enable mirroring to a remote repository. It currently only supports a single remote location repository, but I will add support for multiple locations hopefully this week. I plan on submitting to the Atlassian market place, but in the mean time if anyone is interested in using/collaborating it is located here: https://github.com/englishtown/stash-hook-mirror

            Stash does not fully support distrubutted development locations like you would expect when we talk about Git. Stash can only control the user permission at single location. We can create Cache at different location but Stash cannot control it....This certainly not Enterprise product at this moment.

            Jay Kantaria added a comment - Stash does not fully support distrubutted development locations like you would expect when we talk about Git. Stash can only control the user permission at single location. We can create Cache at different location but Stash cannot control it....This certainly not Enterprise product at this moment.

            This is a key feature we were hoping for in an 'Enterprise' product like many of the folks above.

            Mark Hudson added a comment - This is a key feature we were hoping for in an 'Enterprise' product like many of the folks above.

            This feature would also help our environment as well. We have need to mirror Git/Stash repos to different locations to reduce the bandwith utilization.

            Jay Kantaria added a comment - This feature would also help our environment as well. We have need to mirror Git/Stash repos to different locations to reduce the bandwith utilization.

              Unassigned Unassigned
              4bb57f013684 Ali
              Votes:
              118 Vote for this issue
              Watchers:
              96 Start watching this issue

                Created:
                Updated: