What happens when the "Enable repository caching on agents" option is enabled

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

 

Purpose

This article's purpose is to explain what happens when the "Enable repository caching on agents" option is enabled.

Solution

The option "Enable repository caching on agents" enables a cache of the git repository checkout on the agent side. If enabled, the source checkout task will first update the cache and then clone the repository from it, not directly from the remote.

After the "Enable repository caching on agents" is enabled, Bamboo will set the remote origin URL for the local copy to point to the cache folder:
i.e.:

remote.origin.url=file://Users/username/bamboo-agent-home/xml-data/build-dir/_git-repositories-cache/a8682f8f67bb59855199defc6cfd93bd62f109f1

If the "Enable repository caching on agents" is disabled, Bamboo will checkout the repository directly from the remote URL and set the remote origin to the actual repository URL:
i.e.:

remote.origin.url=ssh://git@bitbucket:7999/proj/repo.git

Last modified on Feb 22, 2022

Was this helpful?

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