Bitbucket Server webhook is not providing git URL is response payload.

お困りですか?

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

コミュニティに質問


プラットフォームについて: 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 は除く

要約

Bitbucket Server Webhook is only providing either SSL or HTTP/HTTPS URL in response and not providing git URL (git://host.xz/path/to/repo.git) in the response payload.

環境

7.15.1

原因

Bitbucket Server or Data Center does not support git protocol and due to this reason - no git protocol URL (git://host.xz/path/to/repo.git) is present in the Webhook Response payload.

One of the common reasons for this is - As we know Git can use four distinct protocols to transfer data: Local, HTTP, Secure Shell (SSH) and Git. Out of these, the GIT protocol provides a service similar to the SSH protocol, but with absolutely no authentication. In order for a repository to be served over the Git protocol, you must create a git-daemon-export-ok file — the daemon won’t serve a repository without that file in it — but, other than that, there is no security. Either the Git repository is available for everyone to clone, or it isn’t. This means that there is generally no pushing over this protocol. You can enable push access but, given the lack of authentication, anyone on the internet who finds your project’s URL could push to that project.

ソリューション

This is the expected behaviour of the Bitbucket Server or Data Center that does not support git protocol.

Last modified on Mar 24, 2022

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

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