Branches are not showing up in Stash when using JGit Flow Maven Plugin

お困りですか?

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

コミュニティに質問

症状

When using JGit Flow Maven Plugin, it does not propagate the changes/tags/branches to the master Git repo in Stash. Bamboo checks out a cache of the Stash repository into  "_git-repositories-cache", when checking the remote using SourceTree, it indicates that the remote is: origin file://nothing rather than the info for Stash. As a result, the branching/tagging that is done by the JGitFlow plugin is showing in the _get-repositories-cache copy, but not making its way back to Stash.

原因

Bamboo uses an internal proxy as the origin by default and configures a non-working origin URL.

回避策

To get around this issue, you need to configure the jgit-flow plugin in your pom.xml with the following. This will tell the plugin to always use your default origin url regardless of what Bamboo puts in there.

<defaultOriginUrl>your-actual-url</defaultOriginUrl>
<alwaysUpdateOrigin>true</alwaysUpdateOrigin>
最終更新日 2014 年 7 月 28 日

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

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