Merging and pushing to remote repository fails

Still need help?

The Atlassian Community is here for you.

Ask the community


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+

DescriptionMerging and pushing to remote repository fails
Last modified on Mar 28, 2019

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.