Bundling agent AMI with recent git repository already checked out

Should it be possible to speed up AWS agent startup time by including a checkout of my git repository on the agent AMI? I've tried this and it seems that TeamCity clears the directory and repeats the checkout anyway. Is there a way to prevent that? I'm on 2018.1. I haven't tried with "use mirrors" yet. I wasn't sure where I should put the initial git repository in that case.

0
2 comments

Hi Matt,

 

the build log should show information as to why a clean checkout was performed. Could you please check what is it exactly saying?

0
Avatar
Permanently deleted user

Nevermind, it seems to be working now. Maybe it's because when I was testing before, the AMI's working copy had core.symlinks=false but the machine git config had core.symlinks=true. Now that I've set the machine git config to core.symlinks=false [1], it seems happy to use the existing working copy.

 

[1] I need core.symlinks=false to prevent some odd errors when using ImDisk to make a ramdrive on Windows (https://www.bountysource.com/issues/52830545-git-clone-not-works-with-some-ramdisk-and-ntfs)

0

Please sign in to leave a comment.