简体   繁体   English

自动检查从一台计算机到另一台计算机的TFS更改

[英]Automatically checking out TFS changes from one machine to another

I'm writing Protractor/Jasmine E2E tests on a local machine in Visual Studio 2015 which has my project stored through TFS and then I am running those tests each night on another machine. 我正在Visual Studio 2015中的本地计算机上编写Protractor / Jasmine E2E测试,该项目的项目通过TFS存储,然后每晚在另一台计算机上运行这些测试。 I may be misunderstanding the concept here and/or missing the point of the appropriate tool for this situation. 我可能在这里误解了这个概念,并且/或者没有针对这种情况使用适当的工具。

But, is there a way such that when I check in changes on my local machine that those changes are automatically checked out (get latest) on the secondary machine without having to manually get latest on the files? 但是,有没有一种方法可以使我在本地计算机上签入更改时,这些更改在辅助计算机上自动签出(获取最新信息)而不必手动获取文件的最新信息?

If you deploy a build agent on the second machine, when you queue build, build agent will get latest version of your project into the source directory. 如果在第二台计算机上部署构建代理,则在将构建排队时,构建代理会将项目的最新版本保存到源目录中。

Or as @jessehouwing mentioned in comment, you can use TF.exe command line in a script on your second machine to get latest version of your project: 或如评论中提到的@jessehouwing一样,您可以在第二台计算机上的脚本中使用TF.exe命令行来获取项目的最新版本:

tf get /version:T

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM