VSTS Hosted Agent, not enough space in the disk -


i cannot build in vsts hosted agent (vs 2017) error:

system.io.ioexception: there not enough space on disk

i have tried setting "clean" option true on build , repository definition without solving issue. didn't have option set true imagine led current situation.

also installed vsts extension "clean agent directories" , added last step of build process without solving issue either.

is there option allow me solve issue , continue using hosted build agent ?

hosted agents offer 10 gb of space. stated entire solution folder 2.6 gb. build outputs typically somewhere in range of 2x size, if not larger, depending on various factors.

if you're git user, entire repo that's being cloned may larger 2.6 gb, -- cloning repo brings down not current working copy of code, of history.

you can control clone depth (e.g. how history pulled down) enabling shallow fetch under advanced options of repo settings.

if you're tfvc user, can check workspace mappings ensure relevant source code being pulled down.

you may in situation 10 gb isn't sufficient purposes. if 2.6 gb purely code , contains no binary assets (images, pdfs, video files, etc), may want start modularizing application smaller subsections can built , independently deployed. if 2.6 gb contains lot of binary assets, you'll want separate static content (images, et al) source code , devise separate static content deployment process.


Comments