问题
I have a simple build definition which I want to use to build just one project, and every time I choose to run this build, I want to get latest from the branch/directories that pertain only to the project in question. How do I do that? The call to "Get Workspace" gets everything from source control, and I do not want to (or need to, for that matter) get latest from everything for various reasons.
I hope I am not asking for much.
Thanks in advance.
回答1:
Check the workspace mapping in the build definition. The build only gets the items that you have specified over there. If you want to exclude some folders within the path that you are mapping, you can choose to cloak some folders.
回答2:
You can adjust your ItemsToBuild
in Process Tab
in Required section

来源:https://stackoverflow.com/questions/12732642/team-build-get-workspace-get-latest-from-specific-paths-not-everything