Merging and pushing to remote repository fails

お困りですか?

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

コミュニティに質問

問題

Repository merging/pushing with/to a remote branch in Script task does not work.

原因

Bamboo creates Git workspaces copying a minimal set of data:

git init
git fetch <remote-branch-ref>:<local-branch-ref>


Moreover Bamboo uses repository caching. It means that code is first fetched from remote repository to a local cache and then another fetch is made from this cache to a workspace that is placed in Plan's working directory. Thus said even if clone operations were performed instead of init/fetch combo we'd be still pushing to a remote which would actually be a local cache instead of real remote repository.This way Bamboo copies only a branch that should be build. Side effect of this is that workspace is not a full clone with information about all branches.

ソリューション

Use Source Control task introduced in Bamboo 6.7+

説明 Merging and pushing to remote repository fails
製品Bamboo
Last modified on Mar 28, 2019

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

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