Working with cached repositories on the agents works fine with the Source Code Checkout task in Bamboo. Now I'm wondering, when using a bamboo script-task, on how use these caches when doing a git clone command.
I noticed that git clone ${bamboo.planRepository.1.repositoryUrl} is working fine, but is the cache being used in that case?
Hello Paul,
Welcome to Atlassian Community.
I don't think so if you run git clone via a script task it will use the cache.
A simple GIT clone command won't know the path where caches are stored. As the cache folder name is created based on the URL and some other combination. Source code checkout task is designed to look for the cache in the particular folder which a simple git clone command won't be.
You can probably refer this https://randyfay.com/content/reference-cache-repositories-speed-clones-git-clone-reference
Regards,
Shashank Kumar
**please don't forget to Accept the answer if your query was answered**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.