How do I handle a large number of files as an input to a build when using VSTS? -




to set expectations, i'm new build tooling. we're using hosted agent we're open other options.

we've got local application kicks off build using vsts api. hosted build tasks involve get sources step github repo local file system in vso. next step need copy on large number of files (upwards of 10000 files), building solution, , running tests.

the problem cloned github repo in file system in visual studio online, , 10000 input files on local machine. seems bit much, since plan on doing ci , may have many builds being kicked off per day.

what best way move input files cloned repo can build it? should using hosted agent this? or best on our local system? i've looked in vso docs haven't found answer there. i'm not sure if asking right questions here.

there ways handle situation, can follow way closest situations.

option 1. add large files github repo

if local files related code of github repo, should add files same repo required files cloned in get sources step, can build directly without copy files step.

option 2. manage large files in git repo, , add git repo submodule github repo

if local large files used other code, can manage large files in separate repo, , treat submodule github repo git submodule add <url separate repo>. , in vsts build definition, select checkout submodules in sources step. large files can used directly when build github code.

enter image description here

option 3. use private agent on local machine

if don’t want add large files in github repo or separate git repo reasons, can use private agent instead. build run time may not improve obviously, because changed run time different between copying local files server , copying local files same local machine.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -