I have a VSTS local agent that runs a "Get Sources" build task, which causes the GIT repository to be downloaded. This works fine.
Unfortunately, my GIT repository is over 20 gigs in size. I have the "Get Sources" task set to not do any cleanup, because I want to prevent subsequent GIT downloads to not have to download the entire 20 gig repository every time.
Today, I noticed that the agent switched the working directory from
C:\agent_work\1
to
C:\agent_work\2
which caused the entire repository to be re-downloaded again when the "Get Sources" build task executed.
What is method by which the Build Agent decides what the "working directory" resolves to and is there a way to force the agent to use the same directory?
I really can't afford the time to download 20 gigs every time I need to do a deployment.
I have no tagging or branching going on in the repository. It's fairly straight forward aside from the size.
Thanks in advance!