How best to download source files from VSTS?

穿精又带淫゛_ 提交于 2019-12-05 14:44:53

You could use our tools in Visual Studio, Eclipse, or from the command line to keep a local copy of your source code on your machine.

More details please refer official tutorial: Download (get) files from the Server

Also, if you want to download your code as a zip:

You can click on any ellipsis to find the menu which contains Download as Zip option.

If you want a automated way, suggest you use the build pipeline. You could disable the default get source steps in the build definition. And use your own powershell script to do the get source/pull files to the workspace. How to, please follow: Is it able to ignore/disable the first step Get source in vNext Build?

This will download files in your build agent, if it's not the machine you are working on. You could combine Archive Files & Windows Machine File Copy task and select Scheduled trigger in your build definition.

Neno

you might consider using an agent + build definition to download the source code (this could happen either based on a schedule or triggered after every check-in). This could easily include compression to a ZIP file and some copy commands.

An additional benefit would be that the build definition doesn't have to re-download the entire source code repository each time it is run - instead, it can be configured to just download get the changes that occurred.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!