How to customize the clone URL for a Bitbucket Server Smart Mirror

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

目的

Once you have set up a smart mirror, you'll notice that Bitbucket Server provides a git clone url for you by default which may look something like:

 

 git clone ssh://git@someMirrorHostname.net:7999/bitbucket1/someProject/someRepo.git

 

You may, however, want something other than what Bitbucket Server has generated in the the upstream identifier part of the clone URL.

ソリューション 

  1. Install Mirror
  2. Before starting mirror add the following to the $BITBUCKET_HOME/shared/bitbucket.properties file:
plugin.mirroring.upstream.namespace=<custom-upstream-identifier>

The <custom-upstream-identifier> bit will replace the Bitbucket Server generated upstream identifier portion of the clone URL.

最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.